mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-18 13:43:27 +00:00
* Tgui: More common components in ts (#83098) ## About The Pull Request Converts more of common into typescript, with some tests ## Why It's Good For The Game Typescript,,,, * Tgui: More common components in ts --------- Co-authored-by: Jeremiah <42397676+jlsnow301@users.noreply.github.com>
12 lines
301 B
TypeScript
12 lines
301 B
TypeScript
import { createUuid } from './uuid';
|
|
|
|
describe('createUuid', () => {
|
|
it('generates a UUID v4 string', () => {
|
|
const uuid = createUuid();
|
|
expect(uuid).toHaveLength(36);
|
|
expect(uuid).toMatch(
|
|
/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,
|
|
);
|
|
});
|
|
});
|