"use strict";
var custom = {
toBeInstanceOf: function(actual, expected) {
var notText = this.isNot ? " not" : "",
result = {};
result.message = function() {
return "Expected " + actual.constructor.name + notText + " is instance of " + expected.name;
};
result.pass = actual instanceof expected;
}
};
jasmine.addMatchers(custom);