-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathvariant-fixtures.ts
More file actions
109 lines (107 loc) · 2.58 KB
/
variant-fixtures.ts
File metadata and controls
109 lines (107 loc) · 2.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
/** CDA-style fixtures aligned with variant utility spec / Java Utils tests. */
export const variantEntrySingle = {
uid: 'entry_uid_single',
_metadata: {},
locale: 'en-us',
_version: 1,
ACL: {},
_in_progress: false,
title: 'Sample Movie',
created_at: '2025-11-20T10:00:00.000Z',
updated_at: '2025-12-11T07:56:17.574Z',
created_by: 'test_user',
updated_by: 'test_user',
publish_details: {
time: '2025-12-11T07:56:17.574Z',
user: 'test_user',
environment: 'test_env',
locale: 'en-us',
variants: {
cs_variant_0_0: {
alias: 'cs_personalize_0_0',
environment: 'test_env',
time: '2025-12-11T07:56:17.574Z',
locale: 'en-us',
user: 'test_user',
version: 1,
},
cs_variant_0_3: {
alias: 'cs_personalize_0_3',
environment: 'test_env',
time: '2025-12-11T07:56:17.582Z',
locale: 'en-us',
user: 'test_user',
version: 1,
},
},
},
} as Record<string, unknown>;
export const variantEntries = [
{
uid: 'entry_uid_1',
_metadata: {},
locale: 'en-us',
_version: 1,
title: 'Sample Movie',
publish_details: {
time: '2025-12-11T07:56:17.574Z',
user: 'test_user',
environment: 'test_env',
locale: 'en-us',
variants: {
cs_variant_0_0: {
alias: 'cs_personalize_0_0',
environment: 'test_env',
time: '2025-12-11T07:56:17.574Z',
locale: 'en-us',
user: 'test_user',
version: 1,
},
cs_variant_0_3: {
alias: 'cs_personalize_0_3',
environment: 'test_env',
time: '2025-12-11T07:56:17.582Z',
locale: 'en-us',
user: 'test_user',
version: 1,
},
},
},
},
{
uid: 'entry_uid_2',
_metadata: {},
locale: 'en-us',
_version: 2,
title: 'Another Movie',
publish_details: {
time: '2025-12-11T07:10:19.964Z',
user: 'test_user',
environment: 'test_env',
locale: 'en-us',
variants: {
cs_variant_0_0: {
alias: 'cs_personalize_0_0',
environment: 'test_env',
time: '2025-12-11T07:10:19.964Z',
locale: 'en-us',
user: 'test_user',
version: 2,
},
},
},
},
{
uid: 'entry_uid_3',
_metadata: {},
locale: 'en-us',
_version: 1,
title: 'Movie No Variants',
publish_details: {
time: '2025-11-20T10:00:00.000Z',
user: 'test_user',
environment: 'test_env',
locale: 'en-us',
},
},
] as Record<string, unknown>[];