Skip to content

Commit

Permalink
test: fix property imports
Browse files Browse the repository at this point in the history
  • Loading branch information
arakakimath committed Feb 25, 2025
1 parent 5421e77 commit 8e06eb4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ describe('Register Delivery Person', () => {
password: '123456',
})

expect(result.isRight).toBeTruthy()
expect(result.isRight()).toBeTruthy()
if (result.isLeft()) throw new Error()
expect(result.value?.deliveryPerson.id).toBeTruthy()
expect(result.value?.deliveryPerson.isAdmin()).toBeFalsy()
expect(deliveryPersonRepository.items[0]).toEqual(
Expand Down

0 comments on commit 8e06eb4

Please sign in to comment.