@@ -1,12 +1,12 @@
|
||||
describe('toBeTrue', function() {
|
||||
it('passes for true', function() {
|
||||
const matcher = jasmineUnderTest.matchers.toBeTrue();
|
||||
const matcher = privateUnderTest.matchers.toBeTrue();
|
||||
const result = matcher.compare(true);
|
||||
expect(result.pass).toBe(true);
|
||||
});
|
||||
|
||||
it('fails for non-true', function() {
|
||||
const matcher = jasmineUnderTest.matchers.toBeTrue();
|
||||
const matcher = privateUnderTest.matchers.toBeTrue();
|
||||
const result = matcher.compare('foo');
|
||||
expect(result.pass).toBe(false);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user