BigW Consortium Gitlab

Commit 8323bc49 by Phil Hughes Committed by Fatih Acet

Fixed up JS tests

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