Sha256: 93f3b0b38e6c61b633cbc5113d86a0dec6e41f79527e737ada8b1f0b66fde148
Contents?: true
Size: 456 Bytes
Versions: 23
Compression:
Stored size: 456 Bytes
Contents
describe("toBeDefined", function() { it("matches for defined values", function() { var matcher = jasmineUnderTest.matchers.toBeDefined(), result; result = matcher.compare('foo'); expect(result.pass).toBe(true); }); it("fails when matching undefined values", function() { var matcher = jasmineUnderTest.matchers.toBeDefined(), result; result = matcher.compare(void 0); expect(result.pass).toBe(false); }) });
Version data entries
23 entries across 20 versions & 2 rubygems