Is there something like a jasmine `toNotContain` acceptance criteria for tests?

According to the documentation, you can use not:

getJasmineRequireObj().not.toContain

This example is from here:

describe("The 'toBe' matcher compares with ===", function() {

Matchers

Each matcher implements a boolean comparison between the actual value and the expected value. It is responsible for reporting to Jasmine if the expectation is true or false. Jasmine will then pass or fail the spec.

    it("and has a positive case", function() {
        expect(true).toBe(true);
    });

Any matcher can evaluate to a negative assertion by chaining the call to expect with a not before calling the matcher.

    it("and can have a negative case", function() {
        expect(false).not.toBe(true);
    });
});

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)