betterer

1.0.2 • Public • Published

betterer

Build Status Coverage Status Code Climate

Proof of concept for tests that read better(er)

Install

npm i betterer

Basic usage

var better = require('./betterer.js').better;
 
// must export a doTheRightThing function, typically with at least one `it`
var yourTests = require('./yourTests.js');
 
var o_o = describe;
 
o_o('using your thing', function() { var o_O = yourTests;
  o_o('the right way', better('do the right thing', o_O));
});

The string 'do the right thing' is mapped to the doTheRightThing function exported by yourTests.js.

See more

Readme

Keywords

Package Sidebar

Install

npm i betterer

Weekly Downloads

564

Version

1.0.2

License

MIT

Last publish

Collaborators

  • javiercejudo