jasmine.any Boolean support

This commit is contained in:
Albert Andrejev
2013-06-21 15:07:55 +03:00
parent 582ad6512a
commit e40e0c9170
2 changed files with 10 additions and 0 deletions

View File

@@ -22,6 +22,12 @@ describe("Any", function() {
expect(any.jasmineMatches({})).toBe(true);
});
it("matches a Boolean", function() {
var any = new j$.Any(Boolean);
expect(any.jasmineMatches(true)).toBe(true);
});
it("matches another constructed object", function() {
var Thing = function() {},