1
0
Fork 0

add an example uuid test

This commit is contained in:
ssube 2021-07-20 23:50:21 -05:00
parent 9aa8db5d11
commit a0ce6c579d
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
1 changed files with 7 additions and 1 deletions

View File

@ -1,4 +1,4 @@
import { integer } from 'fast-check';
import { integer, uuid } from 'fast-check';
import { over } from '../src/index';
@ -8,4 +8,10 @@ describe('some foo', () => {
return bar < 1_000;
});
});
over('some IDs', uuid(), (it) => {
it('should be a good one', (id: string) => {
return id[9] !== 'a';
});
});
});