Name: js-handler/node_modules/nodeunit/node_modules/tap/test-disabled/t.js
| 1: | var test = require('tap').test; |
| 2: | |
| 3: | function foo() { |
| 4: | throw new Error('one'); |
| 5: | } |
| 6: | |
| 7: | test('demonstrate bug in t.throws', function (t) { |
| 8: | t.throws( |
| 9: | function () { |
| 10: | foo(); |
| 11: | }, |
| 12: | new Error('two')), |
| 13: | // "this should throw", |
| 14: | // {}); // not 'one'! |
| 15: | t.end(); |
| 16: | }); |
