Skip to content

Commit

Permalink
Updated test to reflect changes to all error response objects. (chang…
Browse files Browse the repository at this point in the history
…ed from returning message in error key to message.
  • Loading branch information
KevinMidboe committed Nov 4, 2019
1 parent b0804f8 commit fd47526
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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"}'))
);
});

0 comments on commit fd47526

Please sign in to comment.