Commit 87c13920 authored by Olena Horal-Koretska's avatar Olena Horal-Koretska

Replace underscore with lodash for ./spec/javascripts/boards

parent a42cb802
......@@ -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],
......
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