Fixed up JS tests

This commit is contained in:
Phil Hughes 2017-01-30 14:11:09 +00:00 committed by Fatih Acet
parent 274987d5c0
commit 8323bc4919
3 changed files with 3 additions and 18 deletions

View file

@ -21,7 +21,7 @@
this.$refs.selectAllBtn.blur();
ModalStore.toggleAll();
}
},
},
components: {
'modal-tabs': gl.issueBoards.ModalTabs,

View file

@ -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'
});

View file

@ -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);