summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-02-23 15:49:12 +0000
committerPhil Hughes <me@iamphill.com>2017-02-23 15:49:12 +0000
commita9bcb5b8f952fd6d8eebdd17fcc1bd904bb3c819 (patch)
treedde6c657429139fe56983e69ccfe924e12f12bf0 /spec
parent7512af29fc5fd94da2ac74a3188eb76b9a366c2a (diff)
downloadgitlab-ce-a9bcb5b8f952fd6d8eebdd17fcc1bd904bb3c819.tar.gz
Fixed eslint errorsboards-card-template-to-js
Diffstat (limited to 'spec')
-rw-r--r--spec/javascripts/boards/board_card_spec.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/spec/javascripts/boards/board_card_spec.js b/spec/javascripts/boards/board_card_spec.js
index 5c1ea930523..192916fbc6a 100644
--- a/spec/javascripts/boards/board_card_spec.js
+++ b/spec/javascripts/boards/board_card_spec.js
@@ -1,6 +1,9 @@
/* global Vue */
/* global List */
+/* global ListLabel */
/* global listObj */
+/* global boardsMockInterceptor */
+/* global BoardService */
require('~/boards/models/list');
require('~/boards/models/label');
@@ -40,7 +43,7 @@ describe('Issue card', () => {
index: 0,
rootPath: '/',
},
- }).$mount();;
+ }).$mount();
done();
}, 0);
});
@@ -88,7 +91,8 @@ describe('Issue card', () => {
describe('mouse events', () => {
const triggerEvent = (eventName, el = vm.$el) => {
const event = document.createEvent('MouseEvents');
- event.initMouseEvent(eventName, true, true, window, 1, 0, 0, 0, 0, false, false, false, false, 0, null);
+ event.initMouseEvent(eventName, true, true, window, 1, 0, 0, 0, 0, false, false,
+ false, false, 0, null);
el.dispatchEvent(event);
};
@@ -125,7 +129,7 @@ describe('Issue card', () => {
expect(gl.issueBoards.BoardsStore.detail.issue).toEqual({});
});
- it('does not set detail issue if showDetail is false', () => {
+ it('does not set detail issue if showDetail is false after mouseup', () => {
triggerEvent('mouseup');
expect(gl.issueBoards.BoardsStore.detail.issue).toEqual({});