Skip to content

armgit / mocha

Public Imported from GitHub
0

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

169 B
Raw Blame
const dependency = require('./lib/dependency');

it('checks dependency', () => {
  if (dependency.testShouldFail === true) {
    throw new Error('test failed');
  }
});