Skip to content

Convert all usages of noop mocha expressions to function matchers #97

Closed
@ljharb

Description

There are a few instances in our doc examples, and our tests which currently violate our styleguide. This also forces the relevant eslint rule to be disabled.

A great first task would be removing this rule override, and fixing our tests and docs to use, for example, .to.equal(true) instead of .to.be.true. (One reason this form is superior, is that expect(false).to.be.truthy, which many might think is a valid matcher, will silently pass tests as a no-op, because truthy isn't a thing).

(Per d00c142#commitcomment-15192634 and #96)

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions