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

WIP - Changing chai.should to chai.expect - Issue #1687 #1723

Closed
wants to merge 2 commits into from

Conversation

ckshei
Copy link
Contributor

@ckshei ckshei commented Apr 22, 2019

Fixes #1687 - Are we on the right track here? If so, I'll update the rest of the files and remove the require('chai/register-should'); line.

@nventuro nventuro added the tests Test suite and helpers. label Apr 22, 2019
@nventuro nventuro self-assigned this Apr 22, 2019
Copy link
Contributor

@nventuro nventuro left a comment

Choose a reason for hiding this comment

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

@ckshei You're indeed right, this is precisely what #1687 is all about :)

(await this.roles.has(authorized)).should.equal(false);
(await this.roles.has(otherAuthorized)).should.equal(false);
(await this.roles.has(other)).should.equal(false);
expect( await this.roles.has(authorized)).to.equal(false);
Copy link
Contributor

Choose a reason for hiding this comment

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

The linter (npm run lint:js) is failing because of this extra space, I think we can remove it without hindering readability.

Suggested change
expect( await this.roles.has(authorized)).to.equal(false);
expect(await this.roles.has(authorized)).to.equal(false);

@stale
Copy link

stale bot commented May 9, 2019

Hi all!
This Pull Request has not had any recent activity, is it still relevant? If so, what is blocking it? Is there anything we can do to help move it forward?
Thanks!

@stale stale bot added the stale label May 9, 2019
@ckshei ckshei closed this May 9, 2019
@ckshei
Copy link
Contributor Author

ckshei commented May 9, 2019

Been busy - but will get to this ASAP - closing the PR in the meantime

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale tests Test suite and helpers.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace chai.should with chai.expect.
2 participants