Skip to content

Commit 1a2eb85

Browse files
committed
feat(prefer-implicit-assert): remove unnecessary checks
1 parent cfe2b8a commit 1a2eb85

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

lib/rules/prefer-implicit-assert.ts

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -109,19 +109,6 @@ export default createTestingLibraryRule<Options, MessageIds>({
109109
) {
110110
return reportError(context, node, 'findBy*');
111111
}
112-
113-
if (
114-
isMemberExpression(node.parent?.parent?.parent?.parent) &&
115-
node.parent?.parent?.parent?.parent.property.type ===
116-
AST_NODE_TYPES.Identifier &&
117-
node.parent.parent.parent.parent.property.name === 'not' &&
118-
isMemberExpression(node.parent.parent.parent.parent.parent) &&
119-
node.parent.parent.parent.parent.parent.property.type ===
120-
AST_NODE_TYPES.Identifier &&
121-
helpers.isAbsenceAssert(node.parent.parent.parent.parent.parent)
122-
) {
123-
return reportError(context, node, 'findBy*');
124-
}
125112
}
126113
}
127114
});
@@ -140,19 +127,6 @@ export default createTestingLibraryRule<Options, MessageIds>({
140127
) {
141128
return reportError(context, node, 'getBy*');
142129
}
143-
144-
if (
145-
isMemberExpression(node.parent?.parent?.parent) &&
146-
node.parent?.parent?.parent.property.type ===
147-
AST_NODE_TYPES.Identifier &&
148-
node.parent.parent.parent.property.name === 'not' &&
149-
isMemberExpression(node.parent.parent.parent.parent) &&
150-
node.parent.parent.parent.parent.property.type ===
151-
AST_NODE_TYPES.Identifier &&
152-
helpers.isAbsenceAssert(node.parent.parent.parent.parent)
153-
) {
154-
return reportError(context, node, 'getBy*');
155-
}
156130
}
157131
}
158132
});

0 commit comments

Comments
 (0)