1
0
Fork 0

another example

This commit is contained in:
ssube 2021-07-20 23:54:15 -05:00
parent a0ce6c579d
commit abe1807433
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
1 changed files with 6 additions and 1 deletions

View File

@ -4,8 +4,13 @@ import { over } from '../src/index';
describe('some foo', () => {
over('the bars', integer(), (it) => {
const large = Math.floor(Math.random() * 1_000_000);
it('should be a small number', (bar: number) => {
return bar < 1_000;
return bar < large;
});
it('should be even', (bar: number) => {
return bar % 2 === 0;
});
});