From fd475265c10f012e6f493695a73035eee511fa10 Mon Sep 17 00:00:00 2001 From: KevinMidboe Date: Mon, 4 Nov 2019 17:54:08 +0100 Subject: [PATCH] Updated test to reflect changes to all error response objects. (changed from returning message in error key to message. --- .../asAUserIWantToGetErrorWhenRegisteringExistingUsername.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seasoned_api/test/system/asAUserIWantToGetErrorWhenRegisteringExistingUsername.js b/seasoned_api/test/system/asAUserIWantToGetErrorWhenRegisteringExistingUsername.js index 0fd4557..9eab046 100644 --- a/seasoned_api/test/system/asAUserIWantToGetErrorWhenRegisteringExistingUsername.js +++ b/seasoned_api/test/system/asAUserIWantToGetErrorWhenRegisteringExistingUsername.js @@ -15,6 +15,6 @@ describe('As a user I want error when registering existing username', () => { .post('/api/v1/user') .send({ username: 'test_user', password: 'password' }) .expect(401) - .then(response => assert.equal(response.text, '{"success":false,"error":"That username is already registered"}')) + .then(response => assert.equal(response.text, '{"success":false,"message":"That username is already registered"}')) ); });