Skip to content

Commit

Permalink
fix: support toHaveBeenCalledOnce (#184)
Browse files Browse the repository at this point in the history
close #173
  • Loading branch information
so1ve committed May 21, 2023
1 parent e961065 commit a4f612c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rules/prefer-called-with.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default createEslintRule<Options, MESSAGE_IDS>({
const { matcher } = vitestFnCall
const matcherName = getAccessorValue(matcher)

if (['toBeCalled', 'toHaveBeenCalled'].includes(matcherName)) {
if (['toBeCalled', 'toHaveBeenCalled', 'toHaveBeenCalledOnce'].includes(matcherName)) {
context.report({
data: { matcherName },
messageId: 'preferCalledWith',
Expand Down

0 comments on commit a4f612c

Please sign in to comment.