Skip to content

Commit

Permalink
Update src/rules/prefer-to-be-undefined.ts
Browse files Browse the repository at this point in the history
Co-Authored-By: Simen Bekkhus <[email protected]>
  • Loading branch information
G-Rath and SimenB authored Aug 15, 2019
1 parent 8ed5547 commit dbbc6f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rules/prefer-to-be-undefined.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ interface UndefinedIdentifier extends TSESTree.Identifier {
const isUndefinedIdentifier = (
node: TSESTree.Node,
): node is UndefinedIdentifier =>
node.type === AST_NODE_TYPES.Identifier && node.name === `${undefined}`;
node.type === AST_NODE_TYPES.Identifier && node.name === 'undefined';

/**
* Checks if the given `ParsedExpectMatcher` is a call to one of the equality matchers,
Expand Down

0 comments on commit dbbc6f9

Please sign in to comment.