From dbeff7bff86d70bcf6bd881f942671176dd71acc Mon Sep 17 00:00:00 2001 From: Randall Morey Date: Thu, 4 Jun 2020 13:12:53 -0400 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=A4=96=20remove=20dev=20error=20?= =?UTF-8?q?mocks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/core/mirage/config.js | 30 ++---------------------------- 1 file changed, 2 insertions(+), 28 deletions(-) diff --git a/ui/core/mirage/config.js b/ui/core/mirage/config.js index 32e0aac11..46f58635e 100644 --- a/ui/core/mirage/config.js +++ b/ui/core/mirage/config.js @@ -1,5 +1,5 @@ import config from '../config/environment'; -import { Response } from 'miragejs'; +//import { Response } from 'miragejs'; export default function() { @@ -28,32 +28,6 @@ export default function() { this.get('/orgs/:org_id/projects'); this.post('/orgs/:org_id/projects'); this.get('/orgs/:org_id/projects/:id'); - this.patch('/orgs/:org_id/projects/:id', () => { - // return new Response(400, {}, { - // "status": 400, - // "code": "invalid_argument", - // "message": "The request contained invalid fields.", - // "details": { - // "request_id": "abc123", - // "TraceId": "0123-4567", - // "fields": [ - // { - // "name": "name", - // "message": "name is required" - // }, - // { - // "name": "description", - // "message": "The description must not be more than 1 trillion characters long." - // } - // ] - // } - // }); - - return new Response(409, {}, { - "status": 409, - "code": "invalid_argument", - "message": "The request was awful." - }); - }); + this.patch('/orgs/:org_id/projects/:id'); this.del('/orgs/:org_id/projects/:id'); }