mocha-it-each
Version:
Parameterized tests for Mocha
24 lines (17 loc) • 463 B
Markdown
Forked from https://github.com/mikejsdev/mocha-param.git
```
npm install --save-dev mocha-it-each
```
```TypeScript
import { itEach } from 'mocha-it-each';
import { expect } from 'chai';
describe('test with parameters', function() {
itEach('test with value ${value}', [0,1,2], function(value) {
expect(typeof value).to.equal(typeof Number());
});
});
```
only and skip can be used same as it