Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
extract magic number (for rebuild)
Browse files Browse the repository at this point in the history
  • Loading branch information
hypernikao committed Jun 12, 2017
1 parent 256fe94 commit f38807b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ describe('Unit | Repository | UserRepository', function() {
});

it('should handle a rejection, when user id is not found', () => {
return UserRepository.findUserById(10093)
const inexistenteId = 10093;
return UserRepository.findUserById(inexistenteId)
.catch((err) => {
const errorType = err instanceof NotFoundError;
expect(errorType).to.be.ok;
Expand Down

0 comments on commit f38807b

Please sign in to comment.