1.0.1 • Published 9 years ago

global-mocha v1.0.1

Weekly downloads
18
License
MIT
Repository
github
Last release
9 years ago

global-mocha

Require mocha global variables.

// Require the globals and write your test like you normally would.
// No more need to define globals at the top of every test for linting!
import {because, before, it} from 'global-mocha';

because('this is a test', function testFn() {
  before(function setupFn() {
    // Do things.
  });

  it('should pass', function assertFn() {
   // Run asserts.
  });
});