UNPKG

hugs

Version:

Hugs - a wrapper for test frameworks

19 lines (14 loc) 313 B
'use strict'; module.exports = function (test) { var assert = require('assert'); var spy = test.spy; return function (done) { var oUT = { method: function () {} }; spy(oUT, 'method'); oUT.method('aString'); assert.calledWith(oUT.method, test.match.string); done(); }; };