Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Anshul Sharma committed Jun 4, 2020
1 parent e9b1b0e commit 382af28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/core/fetchRequest/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,13 @@ define(['core/fetchRequest', 'core/jwt/jwtTokenHandler', 'fetch-mock'], (
fetchMock.mock(
'/foo',
new Response(JSON.stringify({ success: false, errorCode: 'ABC123', errorMessage: 'Cannot trigger ABC' }), {
status: 201
status: 406
})
);

request('/foo').catch(error => {
assert.equal(error.message, 'ABC123 : Cannot trigger ABC');
assert.equal(error.response.status, 201);
assert.equal(error.response.status, 406);
done();
});
});
Expand Down

0 comments on commit 382af28

Please sign in to comment.