UNPKG

example-runner

Version:

Runner for example files, usually tests.

9 lines (7 loc) 199 B
if (typeof assert === 'undefined') { throw new Error('expected `assert` to be defined'); } try { assert.equal(1, 2); throw new Error('expected `assert.equal(1, 2)` to throw'); } catch (ex) {}