UNPKG

grunt-simple-mocha

Version:

A simple wrapper for running tests with Mocha.

17 lines (13 loc) 249 B
var assert = require('assert'); function level2() { throw new Error('It failed!'); } function level1() { level2(); } describe('a failing test', function() { it('should succeed', function() { // But it doesn't... level1(); }); });