mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-13 04:03:07 +00:00
12 lines
319 B
TypeScript
12 lines
319 B
TypeScript
import { uniqueId } from '../../src/unique-id';
|
|
|
|
test('uniqueId should return a unique id with prefix', () => {
|
|
const id = uniqueId('test');
|
|
expect(id.startsWith('test')).toBeTruthy();
|
|
});
|
|
|
|
test('uniqueId should return a unique id without prefix', () => {
|
|
const id = uniqueId();
|
|
expect(id).not.toBeFalsy();
|
|
});
|