Skip to content

Bug Report: expectRejectCase & expectResolveCase is not working #254

@yatki

Description

@yatki

Hello, I was interested to solve the issue #54 and I was looking at the code base.

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions