Skip to content
Snippets Groups Projects
Commit 53b3c62e authored by Phil Hughes's avatar Phil Hughes
Browse files

Fixed JS tests

parent dc49ee62
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -14,7 +14,7 @@
 
(() => {
beforeEach(() => {
gl.boardService = new BoardService('/test/issue-boards/board');
gl.boardService = new BoardService('/test/issue-boards/board', '1');
gl.issueBoards.BoardsStore.create();
 
$.cookie('issue_board_welcome_hidden', 'false');
Loading
Loading
Loading
Loading
@@ -16,7 +16,7 @@ describe('Issue model', () => {
let issue;
 
beforeEach(() => {
gl.boardService = new BoardService('/test/issue-boards/board');
gl.boardService = new BoardService('/test/issue-boards/board', '1');
gl.issueBoards.BoardsStore.create();
 
issue = new ListIssue({
Loading
Loading
Loading
Loading
@@ -16,7 +16,7 @@ describe('List model', () => {
let list;
 
beforeEach(() => {
gl.boardService = new BoardService('/test/issue-boards/board');
gl.boardService = new BoardService('/test/issue-boards/board', '1');
gl.issueBoards.BoardsStore.create();
 
list = new List(listObj);
Loading
Loading
Loading
Loading
@@ -26,7 +26,7 @@ const listObjDuplicate = {
 
const BoardsMockData = {
'GET': {
'/test/issue-boards/board/lists{/id}/issues': {
'/test/issue-boards/board/1/lists{/id}/issues': {
issues: [{
title: 'Testing',
iid: 1,
Loading
Loading
@@ -37,13 +37,13 @@ const BoardsMockData = {
}
},
'POST': {
'/test/issue-boards/board/lists{/id}': listObj
'/test/issue-boards/board/1/lists{/id}': listObj
},
'PUT': {
'/test/issue-boards/board/lists{/id}': {}
'/test/issue-boards/board/1/lists{/id}': {}
},
'DELETE': {
'/test/issue-boards/board/lists{/id}': {}
'/test/issue-boards/board/1/lists{/id}': {}
}
};
 
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