UNPKG

testdouble

Version:

A minimal test double library for TDD with JavaScript

15 lines (13 loc) 374 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const log_1 = require("../log"); function ensureRehearsal(rehearsal) { if (!rehearsal) { log_1.default.error('td.when', `\ No test double invocation call detected for \`when()\`. Usage: when(myTestDouble('foo')).thenReturn('bar')\ `); } } exports.default = ensureRehearsal;