mirror of
https://github.com/idrawjs/idraw
synced 2026-05-24 10:08:34 +00:00
15 lines
271 B
TypeScript
15 lines
271 B
TypeScript
import {
|
|
createUUID
|
|
} from '../../src/lib/uuid';
|
|
|
|
|
|
describe('@idraw/util: lib/uuid', () => {
|
|
|
|
test('createUUID', async () => {
|
|
const uuid = createUUID();
|
|
expect(typeof uuid).toStrictEqual('string');
|
|
expect(uuid.length).toStrictEqual(36);
|
|
});
|
|
|
|
});
|
|
|