missing-assertion

Rule details

This rule looks for every call to expect and reports them if they are called without assertion.

Incorrect

it("fails as expected", function() {
    expect(true);
});
it("fails as expected", function() {
    return expect(true);
});

Correct

it("works as expected", function() {
    expect(true).to.be.ok;
});
it("works as expected", function() {
    return expect(true).to.be.ok;
});