Files
dsabot/__tests__/functions/Roll.js
TobenderZephyr 924fca5b90 add more tests (#26)
* added more tests

* (fix) no cpu profile.
2021-04-29 19:42:51 +00:00

9 lines
253 B
JavaScript

const { roll } = require('@dsabot/Roll');
describe('rolling dice', () => {
const expected = [1, 2, 3, 4, 5, 6];
test.each(expected)('contains only numbers from 1 to 6', value => {
expect(roll(200, 6).dice).toContain(value);
});
});