@antv/x6
Version:
JavaScript diagramming library that uses SVG and HTML for rendering.
11 lines • 383 B
JavaScript
import { uuid } from './uuid';
describe('string', () => {
describe('#uuid', () => {
it('should generate uuids with RFC-4122 format', () => {
for (let i = 0; i < 10000; i += 1) {
expect(uuid()).toMatch(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/);
}
});
});
});
//# sourceMappingURL=uuid.test.js.map