diff options
Diffstat (limited to 'spec/frontend/registry/settings/store/mutations_spec.js')
-rw-r--r-- | spec/frontend/registry/settings/store/mutations_spec.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/frontend/registry/settings/store/mutations_spec.js b/spec/frontend/registry/settings/store/mutations_spec.js index deb59089d60..8ab0196fd4d 100644 --- a/spec/frontend/registry/settings/store/mutations_spec.js +++ b/spec/frontend/registry/settings/store/mutations_spec.js @@ -1,7 +1,7 @@ import mutations from '~/registry/settings/store/mutations'; import * as types from '~/registry/settings/store/mutation_types'; import createState from '~/registry/settings/store/state'; -import { formOptions, stringifiedFormOptions } from '../mock_data'; +import { formOptions, stringifiedFormOptions } from '../../shared/mock_data'; describe('Mutations Registry Store', () => { let mockState; @@ -28,7 +28,7 @@ describe('Mutations Registry Store', () => { mockState.settings = { foo: 'bar' }; const payload = { foo: 'baz' }; const expectedState = { ...mockState, settings: payload }; - mutations[types.UPDATE_SETTINGS](mockState, payload); + mutations[types.UPDATE_SETTINGS](mockState, { settings: payload }); expect(mockState.settings).toEqual(expectedState.settings); }); }); |