1
0
Fork 0
mocha-foam/test/TestOver.ts

18 lines
379 B
TypeScript
Raw Normal View History

2021-07-21 04:50:21 +00:00
import { integer, uuid } from 'fast-check';
2021-07-21 04:20:39 +00:00
import { over } from '../src/index';
describe('some foo', () => {
2021-07-21 04:39:29 +00:00
over('the bars', integer(), (it) => {
it('should be a small number', (bar: number) => {
return bar < 1_000;
2021-07-21 04:20:39 +00:00
});
});
2021-07-21 04:50:21 +00:00
over('some IDs', uuid(), (it) => {
it('should be a good one', (id: string) => {
return id[9] !== 'a';
});
});
2021-07-21 04:20:39 +00:00
});