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