We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29f556f commit 7aeab95Copy full SHA for 7aeab95
lib/rules/prefer-presence-queries.js
@@ -36,7 +36,7 @@ module.exports = {
36
37
if (expectCallNode) {
38
const expectStatement = expectCallNode.parent;
39
- let matcher = expectStatement.property.name;
+ let matcher = expectStatement.property && expectStatement.property.name;
40
let isNegatedMatcher = false;
41
42
if (matcher === 'not') {
0 commit comments