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
367da4d5
Commit
367da4d5
authored
Mar 12, 2020
by
Jackie Fraser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate ee mr_widget_store_spec from Karma to Jest
parent
2ff3906e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ee/spec/frontend/vue_mr_widget/stores/mr_widget_store_spec.js
...pec/frontend/vue_mr_widget/stores/mr_widget_store_spec.js
+2
-2
No files found.
ee/spec/
javascripts
/vue_mr_widget/stores/mr_widget_store_spec.js
→
ee/spec/
frontend
/vue_mr_widget/stores/mr_widget_store_spec.js
View file @
367da4d5
...
...
@@ -5,7 +5,7 @@ import mockData, {
baseIssues
,
parsedBaseIssues
,
parsedHeadIssues
,
}
from
'
ee_
spec
/vue_mr_widget/mock_data
'
;
}
from
'
ee_
jest
/vue_mr_widget/mock_data
'
;
import
{
stateKey
}
from
'
~/vue_merge_request_widget/stores/state_maps
'
;
describe
(
'
MergeRequestStore
'
,
()
=>
{
...
...
@@ -18,7 +18,7 @@ describe('MergeRequestStore', () => {
describe
(
'
compareCodeclimateMetrics
'
,
()
=>
{
beforeEach
(()
=>
{
// mock worker response
spyOn
(
MergeRequestStore
,
'
doCodeClimateComparison
'
).
and
.
callFake
(()
=>
jest
.
spyOn
(
MergeRequestStore
,
'
doCodeClimateComparison
'
).
mockImplementation
(()
=>
Promise
.
resolve
({
newIssues
:
filterByKey
(
parsedHeadIssues
,
parsedBaseIssues
,
'
fingerprint
'
),
resolvedIssues
:
filterByKey
(
parsedBaseIssues
,
parsedHeadIssues
,
'
fingerprint
'
),
...
...
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