Commit 9b319658 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch...

Merge branch 'migrate-ee_spec_javascripts_vue_mr_widget_stores_mr_widget_store_spec_to_jest' into 'master'

Migrate ee mr_widget_store_spec from Karma to Jest

See merge request gitlab-org/gitlab!26795
parents 78b60315 367da4d5
...@@ -5,7 +5,7 @@ import mockData, { ...@@ -5,7 +5,7 @@ import mockData, {
baseIssues, baseIssues,
parsedBaseIssues, parsedBaseIssues,
parsedHeadIssues, 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'; import { stateKey } from '~/vue_merge_request_widget/stores/state_maps';
describe('MergeRequestStore', () => { describe('MergeRequestStore', () => {
...@@ -18,7 +18,7 @@ describe('MergeRequestStore', () => { ...@@ -18,7 +18,7 @@ describe('MergeRequestStore', () => {
describe('compareCodeclimateMetrics', () => { describe('compareCodeclimateMetrics', () => {
beforeEach(() => { beforeEach(() => {
// mock worker response // mock worker response
spyOn(MergeRequestStore, 'doCodeClimateComparison').and.callFake(() => jest.spyOn(MergeRequestStore, 'doCodeClimateComparison').mockImplementation(() =>
Promise.resolve({ Promise.resolve({
newIssues: filterByKey(parsedHeadIssues, parsedBaseIssues, 'fingerprint'), newIssues: filterByKey(parsedHeadIssues, parsedBaseIssues, 'fingerprint'),
resolvedIssues: filterByKey(parsedBaseIssues, parsedHeadIssues, 'fingerprint'), resolvedIssues: filterByKey(parsedBaseIssues, parsedHeadIssues, 'fingerprint'),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment