Skip to content

Commit

Permalink
no-useless-undefined: Ignore toHaveBeenCalledWith method (#876)
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Oct 20, 2020
1 parent e755cdd commit d10a641
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions rules/no-useless-undefined.js
Expand Up @@ -47,6 +47,7 @@ const compareFunctionNames = new Set([
'include',
'property',
'toBe',
'toHaveBeenCalledWith',
'toContain',
'toContainEqual',
'toEqual',
Expand Down
3 changes: 2 additions & 1 deletion test/no-useless-undefined.js
Expand Up @@ -40,7 +40,8 @@ test({
't.same(foo, undefined)',
't.notSame(foo, undefined)',
't.strictSame(foo, undefined)',
't.strictNotSame(foo, undefined)'
't.strictNotSame(foo, undefined)',
'expect(someFunction).toHaveBeenCalledWith(1, 2, undefined);'
],
invalid: [
{
Expand Down

0 comments on commit d10a641

Please sign in to comment.