Files
dsabot/__tests__/functions/Roll.js
TobenderZephyr 126dce828d Cleanup (#19)
* reformatting of skill checks table

* Including own Random "generator", more refactoring
2021-04-22 17:36:10 +02:00

8 lines
244 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);
});
});