Commit 2c9c9a86 authored by Clement Ho's avatar Clement Ho

Fix karma

parent 9fba3120
/* global List */ /* global List */
/* global ListUser */ /* global ListAssignee */
/* global ListLabel */ /* global ListLabel */
/* global listObj */ /* global listObj */
/* global boardsMockInterceptor */ /* global boardsMockInterceptor */
/* global BoardService */ /* global BoardService */
import Vue from 'vue'; import Vue from 'vue';
import '~/boards/models/user'; import '~/boards/models/assignee';
require('~/boards/models/list'); require('~/boards/models/list');
require('~/boards/models/label'); require('~/boards/models/label');
...@@ -133,12 +133,12 @@ describe('Issue card', () => { ...@@ -133,12 +133,12 @@ describe('Issue card', () => {
}); });
it('does not set detail issue if img is clicked', (done) => { it('does not set detail issue if img is clicked', (done) => {
vm.issue.assignee = new ListUser({ vm.issue.assignees = [new ListAssignee({
id: 1, id: 1,
name: 'testing 123', name: 'testing 123',
username: 'test', username: 'test',
avatar: 'test_image', avatar: 'test_image',
}); })];
Vue.nextTick(() => { Vue.nextTick(() => {
triggerEvent('mouseup', vm.$el.querySelector('img')); triggerEvent('mouseup', vm.$el.querySelector('img'));
......
...@@ -35,6 +35,7 @@ describe('Board list component', () => { ...@@ -35,6 +35,7 @@ describe('Board list component', () => {
iid: 1, iid: 1,
confidential: false, confidential: false,
labels: [], labels: [],
assignees: [],
}); });
list.issuesSize = 1; list.issuesSize = 1;
list.issues.push(issue); list.issues.push(issue);
......
...@@ -120,7 +120,8 @@ describe('List model', () => { ...@@ -120,7 +120,8 @@ describe('List model', () => {
title: 'Testing', title: 'Testing',
iid: _.random(10000) + i, iid: _.random(10000) + i,
confidential: false, confidential: false,
labels: [list.label] labels: [list.label],
assignees: [],
})); }));
} }
list.issuesSize = 50; list.issuesSize = 50;
...@@ -138,7 +139,8 @@ describe('List model', () => { ...@@ -138,7 +139,8 @@ describe('List model', () => {
title: 'Testing', title: 'Testing',
iid: _.random(10000), iid: _.random(10000),
confidential: false, confidential: false,
labels: [list.label] labels: [list.label],
assignees: [],
})); }));
list.issuesSize = 2; list.issuesSize = 2;
......
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