-
Notifications
You must be signed in to change notification settings - Fork 243
Closed
Labels
Description
Hello, I was interested to solve the issue #54 and I was looking at the code base.
eslint-plugin-jest/rules/util.js
Lines 20 to 28 in 05eb11a
| const expectResolveCase = node => | |
| expectCase(node) && | |
| node.parent.parent.type === 'MemberExpression' && | |
| methodName(node) === 'resolve'; | |
| const expectRejectCase = node => | |
| expectCase(node) && | |
| node.parent.parent.type === 'MemberExpression' && | |
| methodName(node) === 'reject'; |
I realised that expectRejectCase & expectResolveCase functions are actually not working. methodName(node) === 'reject'; here the method name must be rejects I think, and the same goes with resolves.
I found the usages for those functions and removing them actually doesn't break anything, means they were not working.
So, would it be ok if i fix these 2 functions and use them to solve issue #54 ?