refactoring (#4)
This commit is contained in:
10
__tests__/functions/Roll.js
Normal file
10
__tests__/functions/Roll.js
Normal 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),
|
||||
);
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user