UNPKG

chai-callslike

Version:

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

12 lines (11 loc) 358 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getObjectDescription = void 0; const is_matcher_1 = require("./is-matcher"); function getObjectDescription(obj) { if (is_matcher_1.isMatcher(obj)) { return 'Matcher'; } return obj.constructor.name; } exports.getObjectDescription = getObjectDescription;