Commit 367da4d5 authored by Jackie Fraser's avatar Jackie Fraser

Migrate ee mr_widget_store_spec from Karma to Jest

parent 2ff3906e
......@@ -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'),
......
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