(fix) !spells and !chants returned null value (#40)

This commit is contained in:
2021-05-04 22:39:59 +02:00
committed by GitHub
parent 895f47847e
commit 4fa2dc7ab7
7 changed files with 56 additions and 7 deletions

View File

@ -6,3 +6,10 @@ describe('rolling dice', () => {
expect(roll(200, 6).dice).toContain(value);
});
});
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, 'test').dice).toContain(value);
});
});