We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have problem with one test:
test('update user', async () => { const updatedFirstName = 'test-first-name-UPDATED' const updatedLastName = 'test-last-name-UPDATED' const response = await server.inject({ method: 'PUT', url: `/users/${userId}`, payload: { firstName: updatedFirstName, lastName: updatedLastName, }, }) expect(response.statusCode).toEqual(200) const user = JSON.parse(response.payload) expect(user.firstName).toEqual(updatedFirstName) expect(user.lastName).toEqual(updatedLastName) })
I get: expect(received).toEqual(expected) // deep equality Expected: 200 / Received: 500.
Bellow full code:
https://pastebin.com/i8JjbkeE https://pastebin.com/cTshA0PW
What is wrong with this test? My database is empty ofc.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have problem with one test:
I get:
expect(received).toEqual(expected) // deep equality Expected: 200 / Received: 500.
Bellow full code:
https://pastebin.com/i8JjbkeE
https://pastebin.com/cTshA0PW
What is wrong with this test?
My database is empty ofc.
The text was updated successfully, but these errors were encountered: