Commit 8323bc49 authored by Phil Hughes's avatar Phil Hughes Committed by Fatih Acet

Fixed up JS tests

parent 274987d5
......@@ -21,7 +21,7 @@
this.$refs.selectAllBtn.blur();
ModalStore.toggleAll();
}
},
},
components: {
'modal-tabs': gl.issueBoards.ModalTabs,
......
......@@ -61,18 +61,6 @@ describe('Store', () => {
expect(list).toBeDefined();
});
it('finds list limited by type', () => {
gl.issueBoards.BoardsStore.addList({
id: 1,
position: 0,
title: 'Test',
list_type: 'backlog'
});
const list = gl.issueBoards.BoardsStore.findList('id', 1, 'backlog');
expect(list).toBeDefined();
});
it('gets issue when new list added', (done) => {
gl.issueBoards.BoardsStore.addList(listObj);
const list = gl.issueBoards.BoardsStore.findList('id', 1);
......@@ -117,10 +105,7 @@ describe('Store', () => {
expect(gl.issueBoards.BoardsStore.shouldAddBlankState()).toBe(false);
});
it('check for blank state adding when backlog & done list exist', () => {
gl.issueBoards.BoardsStore.addList({
list_type: 'backlog'
});
it('check for blank state adding when done list exist', () => {
gl.issueBoards.BoardsStore.addList({
list_type: 'done'
});
......
......@@ -93,7 +93,7 @@ describe('Issue card component', () => {
setTimeout(() => {
expect(
component.$el.querySelector('.fa-eye-flash'),
component.$el.querySelector('.confidential-icon'),
).not.toBeNull();
done();
}, 0);
......
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