Skip to content

Commit

Permalink
chore: fix message of toBeLessThan and toBeLessOrEqual (#754)
Browse files Browse the repository at this point in the history
  • Loading branch information
togami2864 committed Feb 14, 2022
1 parent 6e65e36 commit e7d6dca
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/vitest/src/integrations/chai/jest-expect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ export const JestChaiExpect: ChaiPlugin = (chai, utils) => {
assertTypes(expected, 'expected', ['number', 'bigint'])
return this.assert(
actual > expected,
`expected ${actual} to be above ${expected}`,
`expected ${actual} not to be above ${expected}`,
`expected ${actual} to be greater than ${expected}`,
`expected ${actual} to be not greater than ${expected}`,
actual,
expected,
)
Expand All @@ -179,8 +179,8 @@ export const JestChaiExpect: ChaiPlugin = (chai, utils) => {
assertTypes(expected, 'expected', ['number', 'bigint'])
return this.assert(
actual >= expected,
`expected ${actual} to be above ${expected}`,
`expected ${actual} not to be above ${expected}`,
`expected ${actual} to be greater than or equal to ${expected}`,
`expected ${actual} to be not greater than or equal to ${expected}`,
actual,
expected,
)
Expand All @@ -191,8 +191,8 @@ export const JestChaiExpect: ChaiPlugin = (chai, utils) => {
assertTypes(expected, 'expected', ['number', 'bigint'])
return this.assert(
actual < expected,
`expected ${actual} to be above ${expected}`,
`expected ${actual} not to be above ${expected}`,
`expected ${actual} to be less than ${expected}`,
`expected ${actual} to be not less than ${expected}`,
actual,
expected,
)
Expand All @@ -203,8 +203,8 @@ export const JestChaiExpect: ChaiPlugin = (chai, utils) => {
assertTypes(expected, 'expected', ['number', 'bigint'])
return this.assert(
actual <= expected,
`expected ${actual} to be above ${expected}`,
`expected ${actual} not to be above ${expected}`,
`expected ${actual} to be less than or equal to ${expected}`,
`expected ${actual} to be not less than or equal to ${expected}`,
actual,
expected,
)
Expand Down

0 comments on commit e7d6dca

Please sign in to comment.