Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forward returned value from assertEqual #37

Merged
merged 1 commit into from
Sep 22, 2021
Merged

Conversation

blastrock
Copy link
Contributor

We use chai-exclude and chai-as-promised in our project. With chai-as-promised, assertions return promises, for example:

await expect(Promise.resolve(1)).to.eventually.equal(8);

But chai-exclude drops the promise because it doesn't forward the return value of the parent assertEqual(). This PR fixes it.

CaptainAchab pushed a commit to TankerHQ/sdk-js that referenced this pull request Aug 18, 2021
Copy link
Owner

@mesaugat mesaugat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks!

@mesaugat mesaugat merged commit 60d73d1 into mesaugat:master Sep 22, 2021
@mesaugat
Copy link
Owner

mesaugat commented Sep 22, 2021

Published in version 2.1.0

CaptainAchab pushed a commit to TankerHQ/sdk-js that referenced this pull request Sep 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants