Skip to content

Commit

Permalink
Fail on purpose
Browse files Browse the repository at this point in the history
  • Loading branch information
Dawidpol committed Nov 8, 2023
1 parent edc3555 commit 47e1bf6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/resource/create.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ describe('Resource #create', () => {
const resource = new Resource(User)

await expect(() => resource.create({ email: '', passwordHash: '' })).rejects.toThrow(ValidationError)
throw new Error('It should fail')
})

it('throws validation error for record with cast errors in nested schema', async () => {
Expand Down

0 comments on commit 47e1bf6

Please sign in to comment.