Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-09-14 15:09:34 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-09-14 15:09:34 +0300
commit9a5dcad39c5dd81384ae4ec2398435883b944363 (patch)
tree3c684d30e4500028299d7948171e885b844a1ade /spec/frontend/boards/stores/actions_spec.js
parent0923a94d58cdd15cdb6379330e5eb41d30ccb8cc (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/boards/stores/actions_spec.js')
-rw-r--r--spec/frontend/boards/stores/actions_spec.js17
1 files changed, 11 insertions, 6 deletions
diff --git a/spec/frontend/boards/stores/actions_spec.js b/spec/frontend/boards/stores/actions_spec.js
index 8efad4d3ac7..4eb1a370a9f 100644
--- a/spec/frontend/boards/stores/actions_spec.js
+++ b/spec/frontend/boards/stores/actions_spec.js
@@ -3,6 +3,7 @@ import {
mockListsWithModel,
mockLists,
mockIssue,
+ mockIssue2,
mockIssueWithModel,
mockIssue2WithModel,
rawIssue,
@@ -133,7 +134,7 @@ describe('createList', () => {
{ backlog: true },
state,
[],
- [{ type: 'addList', payload: backlogList }],
+ [{ type: 'addList', payload: { ...backlogList, id: 1 } }],
done,
);
});
@@ -231,15 +232,19 @@ describe('deleteList', () => {
expectNotImplemented(actions.deleteList);
});
+describe('fetchIssuesForList', () => {
+ expectNotImplemented(actions.fetchIssuesForList);
+});
+
describe('moveIssue', () => {
const listIssues = {
- 'gid://gitlab/List/1': [436, 437],
+ 'gid://gitlab/List/1': [mockIssue.id, mockIssue2.id],
'gid://gitlab/List/2': [],
};
const issues = {
- '436': mockIssueWithModel,
- '437': mockIssue2WithModel,
+ '1': mockIssueWithModel,
+ '2': mockIssue2WithModel,
};
const state = {
@@ -264,7 +269,7 @@ describe('moveIssue', () => {
testAction(
actions.moveIssue,
{
- issueId: '436',
+ issueId: mockIssue.id,
issueIid: mockIssue.iid,
issuePath: mockIssue.referencePath,
fromListId: 'gid://gitlab/List/1',
@@ -303,7 +308,7 @@ describe('moveIssue', () => {
testAction(
actions.moveIssue,
{
- issueId: '436',
+ issueId: mockIssue.id,
issueIid: mockIssue.iid,
issuePath: mockIssue.referencePath,
fromListId: 'gid://gitlab/List/1',