From 5b50f6fb94d09eb0d5549c8baebc7e3a8b59fefe Mon Sep 17 00:00:00 2001 From: Serhat Bolsu Date: Fri, 1 Nov 2019 12:01:24 +0400 Subject: [PATCH] DELETE relation to mock method fixed Delete only calls database.deleteVegetable so fixed the name of the test case. --- test/mocks.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/mocks.js b/test/mocks.js index 4d2d5af..7b81cd4 100644 --- a/test/mocks.js +++ b/test/mocks.js @@ -50,8 +50,8 @@ describe('vegetable api - mocks', function() { }); describe('when DELETE /vegetable/:name is requested', function() { - it('should respond with 500 and if databaseMock.getVegetables throws an error', function() { + it('should respond with 500 and if databaseMock.deleteVegetable throws an error', function() { }); }); -}); \ No newline at end of file +});