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
77c4783c
Commit
77c4783c
authored
May 07, 2020
by
Jackie Fraser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate spec vue_mr_widget/stores dir to Jest
parent
f6dd05a5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
spec/frontend/vue_mr_widget/stores/artifacts_list/actions_spec.js
...ntend/vue_mr_widget/stores/artifacts_list/actions_spec.js
+2
-2
spec/frontend/vue_mr_widget/stores/mr_widget_store_spec.js
spec/frontend/vue_mr_widget/stores/mr_widget_store_spec.js
+4
-4
No files found.
spec/
javascripts
/vue_mr_widget/stores/artifacts_list/actions_spec.js
→
spec/
frontend
/vue_mr_widget/stores/artifacts_list/actions_spec.js
View file @
77c4783c
import
MockAdapter
from
'
axios-mock-adapter
'
;
import
testAction
from
'
spec/
helpers/vuex_action_helper
'
;
import
{
TEST_HOST
}
from
'
spec
/test_constants
'
;
import
testAction
from
'
helpers/vuex_action_helper
'
;
import
{
TEST_HOST
}
from
'
helpers
/test_constants
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
import
{
setEndpoint
,
...
...
spec/
javascripts
/vue_mr_widget/stores/mr_widget_store_spec.js
→
spec/
frontend
/vue_mr_widget/stores/mr_widget_store_spec.js
View file @
77c4783c
...
...
@@ -73,13 +73,13 @@ describe('MergeRequestStore', () => {
it
(
'
returns true when nothingToMerge
'
,
()
=>
{
store
.
state
=
stateKey
.
nothingToMerge
;
expect
(
store
.
isNothingToMergeState
).
to
Equal
(
true
);
expect
(
store
.
isNothingToMergeState
).
to
Be
(
true
);
});
it
(
'
returns false when not nothingToMerge
'
,
()
=>
{
store
.
state
=
'
state
'
;
expect
(
store
.
isNothingToMergeState
).
to
Equal
(
false
);
expect
(
store
.
isNothingToMergeState
).
to
Be
(
false
);
});
});
});
...
...
@@ -88,13 +88,13 @@ describe('MergeRequestStore', () => {
it
(
'
should set the add ci config path
'
,
()
=>
{
store
.
setData
({
...
mockData
});
expect
(
store
.
mergeRequestAddCiConfigPath
).
to
Equal
(
'
/group2/project2/new/pipeline
'
);
expect
(
store
.
mergeRequestAddCiConfigPath
).
to
Be
(
'
/group2/project2/new/pipeline
'
);
});
it
(
'
should set humanAccess=Maintainer when user has that role
'
,
()
=>
{
store
.
setData
({
...
mockData
});
expect
(
store
.
humanAccess
).
to
Equal
(
'
Maintainer
'
);
expect
(
store
.
humanAccess
).
to
Be
(
'
Maintainer
'
);
});
it
(
'
should set pipelinesEmptySvgPath
'
,
()
=>
{
...
...
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