Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
b15c4059
Commit
b15c4059
authored
Sep 10, 2019
by
Illya Klymov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix zen mode spec
parent
85baf6c7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
spec/javascripts/zen_mode_spec.js
spec/javascripts/zen_mode_spec.js
+2
-0
spec/support/helpers/javascript_fixtures_helpers.rb
spec/support/helpers/javascript_fixtures_helpers.rb
+1
-1
No files found.
spec/javascripts/zen_mode_spec.js
View file @
b15c4059
...
...
@@ -2,6 +2,7 @@ import $ from 'jquery';
import
Dropzone
from
'
dropzone
'
;
import
Mousetrap
from
'
mousetrap
'
;
import
ZenMode
from
'
~/zen_mode
'
;
import
initNotes
from
'
~/init_notes
'
;
describe
(
'
ZenMode
'
,
()
=>
{
let
zen
;
...
...
@@ -28,6 +29,7 @@ describe('ZenMode', () => {
beforeEach
(()
=>
{
loadFixtures
(
fixtureName
);
initNotes
();
dropzoneForElementSpy
=
spyOn
(
Dropzone
,
'
forElement
'
).
and
.
callFake
(()
=>
({
enable
:
()
=>
true
,
...
...
spec/support/helpers/javascript_fixtures_helpers.rb
View file @
b15c4059
...
...
@@ -69,7 +69,7 @@ module JavaScriptFixturesHelpers
link_tags
=
doc
.
css
(
'link'
)
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
fixture
=
doc
.
to_html
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment