UNPKG

compound-ex4

Version:

Compound-ex4 - MVC framework for NodeJS (ExpressJs 4 version), fork compoundjs(https://github.com/1602/compound)

17 lines (14 loc) 272 B
var test = require('tap').test; function foo() { throw new Error('one'); } test('demonstrate bug in t.throws', function (t) { t.throws( function () { foo(); }, new Error('two')), // "this should throw", // {}); // not 'one'! t.end(); });