diff options
Diffstat (limited to 'spec/frontend/vue_mr_widget/stores/mr_widget_store_spec.js')
-rw-r--r-- | spec/frontend/vue_mr_widget/stores/mr_widget_store_spec.js | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/spec/frontend/vue_mr_widget/stores/mr_widget_store_spec.js b/spec/frontend/vue_mr_widget/stores/mr_widget_store_spec.js index b691a366a0f..f73f78d6f6e 100644 --- a/spec/frontend/vue_mr_widget/stores/mr_widget_store_spec.js +++ b/spec/frontend/vue_mr_widget/stores/mr_widget_store_spec.js @@ -118,27 +118,33 @@ describe('MergeRequestStore', () => { describe('setPaths', () => { it('should set the add ci config path', () => { - store.setData({ ...mockData }); + store.setPaths({ ...mockData }); expect(store.mergeRequestAddCiConfigPath).toBe('/group2/project2/new/pipeline'); }); it('should set humanAccess=Maintainer when user has that role', () => { - store.setData({ ...mockData }); + store.setPaths({ ...mockData }); expect(store.humanAccess).toBe('Maintainer'); }); it('should set pipelinesEmptySvgPath', () => { - store.setData({ ...mockData }); + store.setPaths({ ...mockData }); expect(store.pipelinesEmptySvgPath).toBe('/path/to/svg'); }); it('should set newPipelinePath', () => { - store.setData({ ...mockData }); + store.setPaths({ ...mockData }); expect(store.newPipelinePath).toBe('/group2/project2/pipelines/new'); }); + + it('should set securityReportsDocsPath', () => { + store.setPaths({ ...mockData }); + + expect(store.securityReportsDocsPath).toBe('security-reports-docs-path'); + }); }); }); |