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