Commit 53b3c62e authored by Phil Hughes's avatar Phil Hughes

Fixed JS tests

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