summaryrefslogtreecommitdiff
path: root/spec/javascripts/boards/mock_data.js.es6
diff options
context:
space:
mode:
Diffstat (limited to 'spec/javascripts/boards/mock_data.js.es6')
-rw-r--r--spec/javascripts/boards/mock_data.js.es658
1 files changed, 0 insertions, 58 deletions
diff --git a/spec/javascripts/boards/mock_data.js.es6 b/spec/javascripts/boards/mock_data.js.es6
deleted file mode 100644
index 8d3e2237fda..00000000000
--- a/spec/javascripts/boards/mock_data.js.es6
+++ /dev/null
@@ -1,58 +0,0 @@
-/* eslint-disable comma-dangle, no-unused-vars, quote-props */
-
-const listObj = {
- id: 1,
- position: 0,
- title: 'Test',
- list_type: 'label',
- label: {
- id: 1,
- title: 'Testing',
- color: 'red',
- description: 'testing;'
- }
-};
-
-const listObjDuplicate = {
- id: 2,
- position: 1,
- title: 'Test',
- list_type: 'label',
- label: {
- id: 2,
- title: 'Testing',
- color: 'red',
- description: 'testing;'
- }
-};
-
-const BoardsMockData = {
- 'GET': {
- '/test/issue-boards/board/1/lists{/id}/issues': {
- issues: [{
- title: 'Testing',
- iid: 1,
- confidential: false,
- labels: []
- }],
- size: 1
- }
- },
- 'POST': {
- '/test/issue-boards/board/1/lists{/id}': listObj
- },
- 'PUT': {
- '/test/issue-boards/board/1/lists{/id}': {}
- },
- 'DELETE': {
- '/test/issue-boards/board/1/lists{/id}': {}
- }
-};
-
-const boardsMockInterceptor = (request, next) => {
- const body = BoardsMockData[request.method][request.url];
-
- next(request.respondWith(JSON.stringify(body), {
- status: 200
- }));
-};