Commit b15c4059 authored by Illya Klymov's avatar Illya Klymov

Fix zen mode spec

parent 85baf6c7
...@@ -2,6 +2,7 @@ import $ from 'jquery'; ...@@ -2,6 +2,7 @@ import $ from 'jquery';
import Dropzone from 'dropzone'; import Dropzone from 'dropzone';
import Mousetrap from 'mousetrap'; import Mousetrap from 'mousetrap';
import ZenMode from '~/zen_mode'; import ZenMode from '~/zen_mode';
import initNotes from '~/init_notes';
describe('ZenMode', () => { describe('ZenMode', () => {
let zen; let zen;
...@@ -28,6 +29,7 @@ describe('ZenMode', () => { ...@@ -28,6 +29,7 @@ describe('ZenMode', () => {
beforeEach(() => { beforeEach(() => {
loadFixtures(fixtureName); loadFixtures(fixtureName);
initNotes();
dropzoneForElementSpy = spyOn(Dropzone, 'forElement').and.callFake(() => ({ dropzoneForElementSpy = spyOn(Dropzone, 'forElement').and.callFake(() => ({
enable: () => true, enable: () => true,
......
...@@ -69,7 +69,7 @@ module JavaScriptFixturesHelpers ...@@ -69,7 +69,7 @@ module JavaScriptFixturesHelpers
link_tags = doc.css('link') link_tags = doc.css('link')
link_tags.remove link_tags.remove
scripts = doc.css("script:not([type='text/template']):not([type='text/x-template'])") scripts = doc.css("script:not([type='text/template']):not([type='text/x-template']):not([type='application/json'])")
scripts.remove scripts.remove
fixture = doc.to_html fixture = doc.to_html
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment