Files
jasmine/spec/core/matchers/toBeFalseSpec.js
2019-04-14 10:17:59 +02:00

18 lines
422 B
JavaScript

describe("toBeFalse", function() {
it("passes for false", function() {
var matcher = jasmineUnderTest.matchers.toBeFalse(),
result;
result = matcher.compare(false);
expect(result.pass).toBe(true);
});
it("fails for non-false", function() {
var matcher = jasmineUnderTest.matchers.toBeFalse(),
result;
result = matcher.compare('foo');
expect(result.pass).toBe(false);
});
});