chai-callslike
Version:
A simple sinon-chai assertion to validate many aspects of stub calls
12 lines (11 loc) • 353 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isMatcher = void 0;
function isMatcher(obj) {
return (obj &&
typeof obj === 'object' &&
obj.constructor.name === 'Object' &&
typeof obj['test'] === 'function' &&
typeof obj['message'] === 'string');
}
exports.isMatcher = isMatcher;