UNPKG

chai-callslike

Version:

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

12 lines (11 loc) 388 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.checkCallCount = void 0; const print_1 = require("./print"); function checkCallCount(actual, expected) { return actual.callCount !== expected.length ? ` Call count: ${print_1.printComparison(actual.callCount, expected.length)}\n` : ''; } exports.checkCallCount = checkCallCount;