UNPKG

sinon-chai-calls-assertion

Version:

A simple sinon-chai assertion to validate many aspects of stub calls

11 lines (10 loc) 318 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isMatcher = void 0; function isMatcher(obj) { return (obj && obj.constructor.name === 'Object' && typeof obj['test'] === 'function' && typeof obj['message'] === 'string'); } exports.isMatcher = isMatcher;