authorgravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-09-05 00:26:57-07:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-09-05 00:26:57-07:00
log4e5e17fd9e2454a7b828a19f0b46e48cde0c7a90
tree91499e7ca40c5fd42951d9503ec5c2573e13eeb8
parent1584076d7651278863f7ee90f5bf70c2aba981b3
signature Signed by PGP key B5690EEEBB952194

test(mobile): remove mocked UUID shape assertions (#10006)


1 files changed, 0 insertions(+), 36 deletions(-)

apps/mobile/src/lib/commandMetadata.test.ts deleted-36
......@@ -1,36 +0,0 @@
1import { describe, expect, it, vi } from "vite-plus/test";
2
3import { makeQueuedMessageMetadata, makeTurnCommandMetadata } from "./commandMetadata";
4
5vi.mock("expo-crypto", () => ({
6 randomUUID: () => crypto.randomUUID(),
7}));
8
9describe("mobile command metadata", () => {
10 it("creates ids and timestamps for thread starts", () => {
11 const metadata = makeTurnCommandMetadata();
12
13 expect(metadata.commandId).toMatch(
14 /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/,
15 );
16 expect(metadata.messageId).toMatch(
17 /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/,
18 );
19 expect(metadata.threadId).toMatch(
20 /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/,
21 );
22 expect(metadata.createdAt).toMatch(/^\d{4}-\d{2}-\d{2}T/);
23 });
24
25 it("creates ids and timestamps for queued messages", () => {
26 const metadata = makeQueuedMessageMetadata();
27
28 expect(metadata.commandId).toMatch(
29 /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/,
30 );
31 expect(metadata.messageId).toMatch(
32 /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/,
33 );
34 expect(metadata.createdAt).toMatch(/^\d{4}-\d{2}-\d{2}T/);
35 });
36});