Skip to content
Snippets Groups Projects
Commit 8323bc49 authored by Phil Hughes's avatar Phil Hughes Committed by Fatih Acet
Browse files

Fixed up JS tests

parent 274987d5
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -21,7 +21,7 @@
this.$refs.selectAllBtn.blur();
 
ModalStore.toggleAll();
}
},
},
components: {
'modal-tabs': gl.issueBoards.ModalTabs,
Loading
Loading
Loading
Loading
@@ -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);
Loading
Loading
@@ -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'
});
Loading
Loading
Loading
Loading
@@ -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);
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment