UNPKG

hugs

Version:

Hugs - a wrapper for test frameworks

19 lines (13 loc) 292 B
'use strict'; module.exports = function (test) { var assert = require('assert'); var stub = test.stub; return function (done) { var oUT = { method: function () {} }; stub(oUT, 'method'); assert.equal(typeof oUT.method.throws, 'function'); done(); }; };