diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-21 18:09:05 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-21 18:09:05 +0300 |
commit | cf6a3e7ed4cb10a3e9fcbda810601387afc8b8d6 (patch) | |
tree | bda3707e95a53cb225793fded61d5073950b0b68 /spec/javascripts | |
parent | 2a040e2655fe0a99df61ad0a7bd0c27e68af0c38 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/javascripts')
-rw-r--r-- | spec/javascripts/boards/list_spec.js | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/spec/javascripts/boards/list_spec.js b/spec/javascripts/boards/list_spec.js index c340b62730c..7385bfb0e5f 100644 --- a/spec/javascripts/boards/list_spec.js +++ b/spec/javascripts/boards/list_spec.js @@ -4,7 +4,6 @@ /* global ListLabel */ import MockAdapter from 'axios-mock-adapter'; -import _ from 'underscore'; import axios from '~/lib/utils/axios_utils'; import '~/boards/models/label'; import '~/boards/models/assignee'; @@ -40,7 +39,7 @@ describe('List model', () => { list = new List({ title: 'test', label: { - id: _.random(10000), + id: 1, title: 'test', color: 'red', text_color: 'white', @@ -96,8 +95,8 @@ describe('List model', () => { const listDup = new List(listObjDuplicate); const issue = new ListIssue({ title: 'Testing', - id: _.random(10000), - iid: _.random(10000), + id: 1, + iid: 1, confidential: false, labels: [list.label, listDup.label], assignees: [], @@ -129,8 +128,8 @@ describe('List model', () => { list.issues.push( new ListIssue({ title: 'Testing', - id: _.random(10000) + i, - iid: _.random(10000) + i, + id: i, + iid: i, confidential: false, labels: [list.label], assignees: [], @@ -151,7 +150,7 @@ describe('List model', () => { list.issues.push( new ListIssue({ title: 'Testing', - id: _.random(10000), + id: 1, confidential: false, labels: [list.label], assignees: [], @@ -192,7 +191,7 @@ describe('List model', () => { list.issues.push( new ListIssue({ title: 'Testing', - id: _.random(10000), + id: 1, confidential: false, labels: [new ListLabel(list.label)], assignees: [], @@ -200,7 +199,7 @@ describe('List model', () => { ); const dummyIssue = new ListIssue({ title: 'new issue', - id: _.random(10000), + id: 2, confidential: false, labels: [new ListLabel(list.label)], assignees: [user], |