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
b82b8fd3
Commit
b82b8fd3
authored
Dec 23, 2020
by
Illya Klymov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve ide/components/pipelines/list_spec spec
- remove deprecated `methods` - migrate to promise-based `it`
parent
4ab9b3ea
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
spec/frontend/ide/components/pipelines/list_spec.js
spec/frontend/ide/components/pipelines/list_spec.js
+3
-7
No files found.
spec/frontend/ide/components/pipelines/list_spec.js
View file @
b82b8fd3
import
{
shallowMount
,
createLocalVue
}
from
'
@vue/test-utils
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
Vue
from
'
vue
'
;
import
Vuex
from
'
vuex
'
;
import
{
GlLoadingIcon
,
GlTab
}
from
'
@gitlab/ui
'
;
import
{
TEST_HOST
}
from
'
helpers/test_constants
'
;
...
...
@@ -8,8 +9,7 @@ import JobsList from '~/ide/components/jobs/list.vue';
import
CiIcon
from
'
~/vue_shared/components/ci_icon.vue
'
;
import
IDEServices
from
'
~/ide/services
'
;
const
localVue
=
createLocalVue
();
localVue
.
use
(
Vuex
);
Vue
.
use
(
Vuex
);
jest
.
mock
(
'
~/ide/services
'
,
()
=>
({
pingUsage
:
jest
.
fn
(),
...
...
@@ -59,9 +59,6 @@ describe('IDE pipelines list', () => {
failedStages
:
failedStagesGetterMock
,
pipelineFailed
:
()
=>
false
,
},
methods
:
{
fetchLatestPipeline
:
jest
.
fn
(),
},
},
},
});
...
...
@@ -69,7 +66,6 @@ describe('IDE pipelines list', () => {
const
createComponent
=
(
state
=
{},
pipelinesState
=
{})
=>
{
wrapper
=
shallowMount
(
List
,
{
localVue
,
store
:
createStore
(
state
,
pipelinesState
),
});
};
...
...
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