Commit 39b67a82 authored by Eulyeon Ko's avatar Eulyeon Ko

Rename getActiveIssue to activeIssue

The getter had been renamed in
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/46939.

The mocked getter in this action spec must be renamed accordingly.
parent 7a752db3
......@@ -316,14 +316,14 @@ export default {
.mutate({
mutation: updateAssignees,
variables: {
iid: getters.getActiveIssue.iid,
projectPath: getters.getActiveIssue.referencePath.split('#')[0],
iid: getters.activeIssue.iid,
projectPath: getters.activeIssue.referencePath.split('#')[0],
assigneeUsernames,
},
})
.then(({ data }) => {
commit('UPDATE_ISSUE_BY_ID', {
issueId: getters.getActiveIssue.id,
issueId: getters.activeIssue.id,
prop: 'assignees',
value: data.issueSetAssignees.issue.assignees.nodes,
});
......
......@@ -646,7 +646,7 @@ describe('setAssignees', () => {
it('calls mutate with the correct values', async () => {
await actions.setAssignees(
{ commit: () => {}, getters: { getActiveIssue: { iid, referencePath: refPath } } },
{ commit: () => {}, getters: { activeIssue: { iid, referencePath: refPath } } },
[name],
);
......@@ -660,7 +660,7 @@ describe('setAssignees', () => {
testAction(
actions.setAssignees,
{},
{ getActiveIssue: { iid, referencePath: refPath }, commit: () => {} },
{ activeIssue: { iid, referencePath: refPath }, commit: () => {} },
[
{
type: 'UPDATE_ISSUE_BY_ID',
......
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