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, {
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