https://github.com/javiercejudo/betterer
Proof of concept for tests that read better(er)
https://github.com/javiercejudo/betterer
Last synced: 3 months ago
JSON representation
Proof of concept for tests that read better(er)
- Host: GitHub
- URL: https://github.com/javiercejudo/betterer
- Owner: javiercejudo
- License: mit
- Created: 2015-03-10T13:45:41.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-01-27T08:41:44.000Z (over 8 years ago)
- Last Synced: 2025-03-08T18:04:50.835Z (3 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/betterer
- Size: 10.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# betterer
[](https://travis-ci.org/javiercejudo/betterer)
[](https://coveralls.io/r/javiercejudo/betterer?branch=master)
[](https://codeclimate.com/github/javiercejudo/betterer)Proof of concept for tests that read better(er)
## Install
npm i betterer
## Basic usage
```js
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
- [spec](test/spec.js)