Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

367 B
Raw Blame
'use strict';

// we cannot recover gracefully if a Runnable has already passed
// then fails asynchronously
it('test 1', function () {
  process.nextTick(function () {
    throw new Error('Too bad');
  });
});

it('test 2', function () {
  throw new Error('should not run - test 2');
});

it('test 3', function () {
  throw new Error('should not run - test 3');
});