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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
aab71313
Commit
aab71313
authored
May 29, 2018
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
karma fixes
parent
66bf2de8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
spec/javascripts/ide/components/pipelines/list_spec.js
spec/javascripts/ide/components/pipelines/list_spec.js
+3
-1
spec/javascripts/vue_shared/components/tabs/tabs_spec.js
spec/javascripts/vue_shared/components/tabs/tabs_spec.js
+3
-3
No files found.
spec/javascripts/ide/components/pipelines/list_spec.js
View file @
aab71313
...
@@ -38,7 +38,7 @@ describe('IDE pipelines list', () => {
...
@@ -38,7 +38,7 @@ describe('IDE pipelines list', () => {
mock
mock
.
onGet
(
'
/abc/def/commit/123/pipelines
'
)
.
onGet
(
'
/abc/def/commit/123/pipelines
'
)
.
reply
(
200
,
{
pipelines
:
[...
pipelines
]
},
{
'
poll-interval
'
:
'
-1
'
});
.
reply
Once
(
200
,
{
pipelines
:
[...
pipelines
]
},
{
'
poll-interval
'
:
'
-1
'
});
vm
=
createComponentWithStore
(
Component
,
store
).
$mount
();
vm
=
createComponentWithStore
(
Component
,
store
).
$mount
();
...
@@ -48,6 +48,8 @@ describe('IDE pipelines list', () => {
...
@@ -48,6 +48,8 @@ describe('IDE pipelines list', () => {
afterEach
(()
=>
{
afterEach
(()
=>
{
vm
.
$destroy
();
vm
.
$destroy
();
mock
.
restore
();
mock
.
restore
();
vm
.
$store
.
dispatch
(
'
stopPipelinePolling
'
);
vm
.
$store
.
dispatch
(
'
clearEtagPoll
'
);
});
});
it
(
'
renders pipeline data
'
,
()
=>
{
it
(
'
renders pipeline data
'
,
()
=>
{
...
...
spec/javascripts/vue_shared/components/tabs/tabs_spec.js
View file @
aab71313
...
@@ -43,15 +43,15 @@ describe('Tabs component', () => {
...
@@ -43,15 +43,15 @@ describe('Tabs component', () => {
});
});
it
(
'
renders active class
'
,
()
=>
{
it
(
'
renders active class
'
,
()
=>
{
expect
(
vm
.
$el
.
querySelector
(
'
li
'
).
classList
).
toContain
(
'
active
'
);
expect
(
vm
.
$el
.
querySelector
(
'
a
'
).
classList
).
toContain
(
'
active
'
);
});
});
it
(
'
updates active class on click
'
,
done
=>
{
it
(
'
updates active class on click
'
,
done
=>
{
vm
.
$el
.
querySelectorAll
(
'
a
'
)[
1
].
click
();
vm
.
$el
.
querySelectorAll
(
'
a
'
)[
1
].
click
();
setTimeout
(()
=>
{
setTimeout
(()
=>
{
expect
(
vm
.
$el
.
querySelector
(
'
li
'
).
classList
).
not
.
toContain
(
'
active
'
);
expect
(
vm
.
$el
.
querySelector
(
'
a
'
).
classList
).
not
.
toContain
(
'
active
'
);
expect
(
vm
.
$el
.
querySelectorAll
(
'
li
'
)[
1
].
classList
).
toContain
(
'
active
'
);
expect
(
vm
.
$el
.
querySelectorAll
(
'
a
'
)[
1
].
classList
).
toContain
(
'
active
'
);
done
();
done
();
});
});
...
...
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