diff options
Diffstat (limited to 'spec/frontend/notes/stores/actions_spec.js')
-rw-r--r-- | spec/frontend/notes/stores/actions_spec.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/frontend/notes/stores/actions_spec.js b/spec/frontend/notes/stores/actions_spec.js index 96713bbfbe8..dc3575d03d1 100644 --- a/spec/frontend/notes/stores/actions_spec.js +++ b/spec/frontend/notes/stores/actions_spec.js @@ -1221,7 +1221,7 @@ describe('Actions Notes Store', () => { }); }); - describe('updateConfidentialityOnIssue', () => { + describe('updateConfidentialityOnIssuable', () => { state = { noteableData: { confidential: false } }; const iid = '1'; const projectPath = 'full/path'; @@ -1236,13 +1236,13 @@ describe('Actions Notes Store', () => { }); it('calls gqClient mutation one time', () => { - actions.updateConfidentialityOnIssue({ commit: () => {}, state, getters }, actionArgs); + actions.updateConfidentialityOnIssuable({ commit: () => {}, state, getters }, actionArgs); expect(utils.gqClient.mutate).toHaveBeenCalledTimes(1); }); it('calls gqClient mutation with the correct values', () => { - actions.updateConfidentialityOnIssue({ commit: () => {}, state, getters }, actionArgs); + actions.updateConfidentialityOnIssuable({ commit: () => {}, state, getters }, actionArgs); expect(utils.gqClient.mutate).toHaveBeenCalledWith({ mutation: updateIssueConfidentialMutation, @@ -1255,7 +1255,7 @@ describe('Actions Notes Store', () => { const commitSpy = jest.fn(); return actions - .updateConfidentialityOnIssue({ commit: commitSpy, state, getters }, actionArgs) + .updateConfidentialityOnIssuable({ commit: commitSpy, state, getters }, actionArgs) .then(() => { expect(commitSpy).toHaveBeenCalledWith( mutationTypes.SET_ISSUE_CONFIDENTIAL, |