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

@@ -20,6 +20,10 @@ getJasmineRequireObj().Any = function() {
if (this.expectedObject == Object) {
return typeof other == 'object';
}
if (this.expectedObject == Boolean) {
return typeof other == 'boolean';
}
return other instanceof this.expectedObject;
};