From c2d6cb09dc7a1a238576163c0cab3e0f637e6d19 Mon Sep 17 00:00:00 2001 From: Dominic Masters Date: Thu, 6 Feb 2020 22:04:20 +1100 Subject: [PATCH] Prepparing for gatsby testing --- src/public/package.json | 3 ++- src/public/src/api/APIRequest.tsx | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/public/package.json b/src/public/package.json index 50b31dd..26e02c5 100644 --- a/src/public/package.json +++ b/src/public/package.json @@ -8,7 +8,8 @@ "start": "npm run develop", "serve": "gatsby serve", "deploy": "serverless client deploy --no-confirm", - "clean": "gatsby clean" + "clean": "gatsby clean", + "test": "echo \"No tests defined\"" }, "repository": { "type": "git", diff --git a/src/public/src/api/APIRequest.tsx b/src/public/src/api/APIRequest.tsx index 098f608..9fdf171 100644 --- a/src/public/src/api/APIRequest.tsx +++ b/src/public/src/api/APIRequest.tsx @@ -1,6 +1,5 @@ export const APIRequest = (url:string, body?:object) => { return fetch(`https://api.domsplace.com/v1/${url}`, { - //mode: 'no-cors', method: body ? 'POST' : 'GET', body: body ? JSON.stringify(body) : null, headers: {