The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 24, 10:15 UTC
test(mobile): remove mocked UUID shape assertions (#10006)
Julius Marminge committed
Sep 5, 2026 at 00:26 UTC
4e5e17fd9e2454a7b828a19f0b46e48cde0c7a90
1 file changed
-36
apps/mobile/src/lib/commandMetadata.test.ts
deleted
-36
@@ -1,36 +0,0 @@
1
-import { describe, expect, it, vi } from "vite-plus/test";
2
-
3
-import { makeQueuedMessageMetadata, makeTurnCommandMetadata } from "./commandMetadata";
4
-
5
-vi.mock("expo-crypto", () => ({
6
- randomUUID: () => crypto.randomUUID(),
7
-}));
8
-
9
-describe("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
-});