refactoring (#4)

This commit is contained in:
2021-04-10 19:17:18 +02:00
committed by GitHub
parent 9cf66c7435
commit 24a07c4588
21 changed files with 240 additions and 173 deletions

View File

@ -0,0 +1,10 @@
const Roll = require('@dsabot/Roll');
describe('Beware of a misunderstanding! A sequence of dice rolls', () => {
const expected = [1,2,3,4,5,6];
it('matches even with an unexpected number 7', () => {
expect(Roll(1,6)).not.toEqual(
expect.arrayContaining(expected),
);
});
});