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
6c97107d
Commit
6c97107d
authored
Oct 04, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed eslint
parent
bbf7ea24
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
11 deletions
+10
-11
app/assets/javascripts/flash.js
app/assets/javascripts/flash.js
+8
-8
spec/javascripts/flash_spec.js
spec/javascripts/flash_spec.js
+2
-3
No files found.
app/assets/javascripts/flash.js
View file @
6c97107d
spec/javascripts/flash_spec.js
View file @
6c97107d
...
@@ -135,7 +135,6 @@ describe('Flash', () => {
...
@@ -135,7 +135,6 @@ describe('Flash', () => {
describe
(
'
createFlash
'
,
()
=>
{
describe
(
'
createFlash
'
,
()
=>
{
describe
(
'
no flash-container
'
,
()
=>
{
describe
(
'
no flash-container
'
,
()
=>
{
it
(
'
does not add to the DOM
'
,
()
=>
{
it
(
'
does not add to the DOM
'
,
()
=>
{
const
el
=
flash
(
'
test
'
);
const
flashEl
=
flash
(
'
testing
'
);
const
flashEl
=
flash
(
'
testing
'
);
expect
(
expect
(
...
@@ -185,7 +184,7 @@ describe('Flash', () => {
...
@@ -185,7 +184,7 @@ describe('Flash', () => {
expect
(
expect
(
document
.
querySelector
(
'
.flash-text
'
).
className
,
document
.
querySelector
(
'
.flash-text
'
).
className
,
).
toBe
(
'
flash-text container-fluid container-limited
'
)
).
toBe
(
'
flash-text container-fluid container-limited
'
)
;
});
});
it
(
'
does not add container when outside of content-wrapper
'
,
()
=>
{
it
(
'
does not add container when outside of content-wrapper
'
,
()
=>
{
...
@@ -194,7 +193,7 @@ describe('Flash', () => {
...
@@ -194,7 +193,7 @@ describe('Flash', () => {
expect
(
expect
(
document
.
querySelector
(
'
.flash-text
'
).
className
,
document
.
querySelector
(
'
.flash-text
'
).
className
,
).
toBe
(
'
flash-text
'
)
).
toBe
(
'
flash-text
'
)
;
});
});
it
(
'
removes element after clicking
'
,
()
=>
{
it
(
'
removes element after clicking
'
,
()
=>
{
...
...
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