Skip to content

Commit

Permalink
style: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
zirkelc committed Dec 11, 2024
1 parent d963768 commit ef967e6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/expect/src/custom-matchers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ${printReceived(actual)}`,

toBeOneOf(actual: unknown, expected: Array<unknown>) {
const { equals, customTesters } = this
const { printReceived, printExpected, matcherHint, } = this.utils
const { printReceived, printExpected, matcherHint } = this.utils

if (!Array.isArray(expected)) {
throw new TypeError(
Expand Down Expand Up @@ -62,5 +62,5 @@ ${printExpected(expected)}
Received:
${printReceived(actual)}`,
}
}
},
}
2 changes: 1 addition & 1 deletion packages/expect/src/jest-extend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ function JestExtendPlugin(
}

toAsymmetricMatcher() {
return `${this.toString()}<${this.sample.map((item) => stringify(item)).join(', ')}>`
return `${this.toString()}<${this.sample.map(item => stringify(item)).join(', ')}>`
}
}

Expand Down
2 changes: 0 additions & 2 deletions test/core/test/jest-expect.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { stripVTControlCharacters } from 'node:util'
import { generateToBeMessage } from '@vitest/expect'
import { processError } from '@vitest/utils/error'
import { assert, beforeAll, describe, expect, it, vi } from 'vitest'
import exp from 'node:constants'

class TestError extends Error {}

Expand Down Expand Up @@ -633,7 +632,6 @@ describe('toBeOneOf()', () => {
})
})


describe('toSatisfy()', () => {
const isOdd = (value: number) => value % 2 !== 0

Expand Down

0 comments on commit ef967e6

Please sign in to comment.