MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / withoutRandomUUID

Function withoutRandomUUID

web/src/lib/opKey.test.ts:8–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6const UUID_V4 = /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/;
7
8function withoutRandomUUID(): void {
9 Object.defineProperty(crypto, 'randomUUID', { value: undefined, configurable: true });
10}
11afterEach(() => {
12 Reflect.deleteProperty(crypto, 'randomUUID');
13});

Callers 1

opKey.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected