* reformatting of skill checks table * Including own Random "generator", more refactoring
8 lines
244 B
JavaScript
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);
|
|
});
|
|
}); |