add a Jasmine toBeA matcher
This commit is contained in:
8
test/jasmine-extensions.js
Normal file
8
test/jasmine-extensions.js
Normal file
@@ -0,0 +1,8 @@
|
||||
beforeEach(function() {
|
||||
var parent = this.getMatchersClass_();
|
||||
this.addMatchers({
|
||||
toBeA: function(type) {
|
||||
return this.actual instanceof type;
|
||||
}
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user