From 666d7851dba63edc0d92eee429cc5fab85d47279 Mon Sep 17 00:00:00 2001 From: Lloyd Brookes Date: Sat, 28 Nov 2015 13:55:43 +0000 Subject: [PATCH] example --- example/mock/mocks/user.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/example/mock/mocks/user.js b/example/mock/mocks/user.js index 576d7a5..1998936 100644 --- a/example/mock/mocks/user.js +++ b/example/mock/mocks/user.js @@ -1,11 +1,8 @@ const users = require('./users.json') -function getUser(id) { - return users.find(user => user.id === Number(id)) -} /* responses for /users/:id */ const mockResponses = [ - /* don't support POST */ + /* don't support POST here */ { request: { method: 'POST' }, response: { status: 400 } }, /* for GET requests, return a particular user */