Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 643 Bytes

README.md

File metadata and controls

23 lines (17 loc) · 643 Bytes

mocha-ui-bdd-meta

Mocha BDD UI with Metadata

Node.js CI

BDD-style interface with meta:

describe('Array', { foo: 'bar' }, function () {
  describe('#indexOf()', { baz: 'buz' }, function () {
    it('should return -1 when not present', { bux: 'bex' }, function () {
      this.meta //? {foo: 'bar', baz: 'buz', bux: 'bex'}
      // ...
    });

    it('should return the index when present', function () {
      // ...
    });
  });
});