Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

enhance chai-vague-error rule #83

Closed
HamletDRC opened this issue Nov 20, 2015 · 0 comments
Closed

enhance chai-vague-error rule #83

HamletDRC opened this issue Nov 20, 2015 · 0 comments
Milestone

Comments

@HamletDRC
Copy link
Member

This should cause a violation:

    expect(something === undefined).to.equal(true, 'something should not have been set');

It is a better error message when written like this:

    expect(something).to.equal(undefined, 'something should not have been set');
@HamletDRC HamletDRC added this to the 2.0.10 milestone Aug 11, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant