Skip to content

Commit

Permalink
test: use toBeNull() instead of toEqual(null)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Nov 29, 2022
1 parent e66d1f4 commit e211e93
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/FluentSchema.integration.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ describe('S', () => {
state: 'Disney World',
type: 'business'
})
expect(validate.errors).toEqual(null)
expect(validate.errors).toBeNull()
expect(valid).toBeTruthy()
})
})
Expand Down Expand Up @@ -217,7 +217,7 @@ describe('S', () => {

it('valid', () => {
const valid = validate({ foo: 'foo' })
expect(validate.errors).toEqual(null)
expect(validate.errors).toBeNull()
expect(valid).toBeTruthy()
})
})
Expand Down Expand Up @@ -326,7 +326,7 @@ describe('S', () => {
thenBarA: 'thenBarA',
thenBarB: 'thenBarB'
})
expect(validate.errors).toEqual(null)
expect(validate.errors).toBeNull()
expect(valid).toBeTruthy()
})
})
Expand Down Expand Up @@ -495,7 +495,7 @@ describe('S', () => {
const valid = validate({
test: null
})
expect(validate.errors).toEqual(null)
expect(validate.errors).toBeNull()
expect(valid).toBeTruthy()
})
})
Expand Down

0 comments on commit e211e93

Please sign in to comment.