Sha256: 77b492ed2e8b4edd64f3f0820932da79e61e559954f82dbfccd697e6dd8402e5
Contents?: true
Size: 1.18 KB
Versions: 18
Compression:
Stored size: 1.18 KB
Contents
describe("Anything", function() { it("matches a string", function() { var anything = new jasmineUnderTest.Anything(); expect(anything.asymmetricMatch('foo')).toBe(true); }); it("matches a number", function() { var anything = new jasmineUnderTest.Anything(); expect(anything.asymmetricMatch(42)).toBe(true); }); it("matches an object", function() { var anything = new jasmineUnderTest.Anything(); expect(anything.asymmetricMatch({ foo: 'bar' })).toBe(true); }); it("matches an array", function() { var anything = new jasmineUnderTest.Anything(); expect(anything.asymmetricMatch([1,2,3])).toBe(true); }); it("doesn't match undefined", function() { var anything = new jasmineUnderTest.Anything(); expect(anything.asymmetricMatch()).toBe(false); expect(anything.asymmetricMatch(undefined)).toBe(false); }); it("doesn't match null", function() { var anything = new jasmineUnderTest.Anything(); expect(anything.asymmetricMatch(null)).toBe(false); }); it("jasmineToString's itself", function() { var anything = new jasmineUnderTest.Anything(); expect(anything.jasmineToString()).toEqual("<jasmine.anything>"); }); });
Version data entries
18 entries across 15 versions & 2 rubygems