1 | let mocks = {
|
2 | synchroniser: {
|
3 | load: () => { },
|
4 | lastSync: new Date().toISOString(),
|
5 | data: [
|
6 | {
|
7 | id: 1,
|
8 | name: 'test',
|
9 | variants: [
|
10 | {
|
11 | name: 'original',
|
12 | range: {
|
13 | start: 0,
|
14 | end: 100
|
15 | },
|
16 | original: true,
|
17 | code: 'control'
|
18 | }
|
19 | ],
|
20 | tags: [],
|
21 | active: true,
|
22 | code: 'feature_abc'
|
23 | },
|
24 | {
|
25 | id: 2,
|
26 | name: 'test2',
|
27 | variants: [
|
28 | {
|
29 | name: 'original2',
|
30 | range: {
|
31 | start: 0,
|
32 | end: 50
|
33 | },
|
34 | original: true,
|
35 | code: 'control'
|
36 | }
|
37 | ],
|
38 | tags: [],
|
39 | active: true,
|
40 | code: 'feature_def'
|
41 | },
|
42 | {
|
43 | id: 3,
|
44 | name: 'test3',
|
45 | variants: [
|
46 | {
|
47 | name: 'original_ghi',
|
48 | range: {
|
49 | start: 0,
|
50 | end: 50
|
51 | },
|
52 | original: true,
|
53 | code: 'original_ghi'
|
54 | },
|
55 | {
|
56 | name: 'variant_1_ghi',
|
57 | range: {
|
58 | start: 50,
|
59 | end: 100
|
60 | },
|
61 | original: false,
|
62 | code: 'variant_1_ghi'
|
63 | }
|
64 | ],
|
65 | tags: [
|
66 | ],
|
67 | active: true,
|
68 | code: 'feature_ghi'
|
69 | },
|
70 | {
|
71 | id: 3,
|
72 | name: 'feature_paused',
|
73 | variants: [{
|
74 | name: 'control',
|
75 | range: {
|
76 | start: 0,
|
77 | end: 100
|
78 | },
|
79 | original: true,
|
80 | code: 'control'
|
81 | }],
|
82 | tags: [],
|
83 | active: false,
|
84 | code: 'feature_paused'
|
85 |
|
86 | }, {
|
87 | id: 1,
|
88 | name: 'rebalance',
|
89 | variants: [
|
90 | {
|
91 | name: 'control',
|
92 | range: {
|
93 | start: 0,
|
94 | end: 100
|
95 | },
|
96 | original: true,
|
97 | code: 'control'
|
98 | },
|
99 | {
|
100 | name: 'variant',
|
101 | range: {
|
102 | start: 0,
|
103 | end: 0
|
104 | },
|
105 | original: false,
|
106 | code: 'variant'
|
107 | }
|
108 | ],
|
109 | tags: [],
|
110 | active: true,
|
111 | code: 'feature_rebalance'
|
112 | },
|
113 | {
|
114 | id: 1,
|
115 | name: 'feature_rebalance_toggle',
|
116 | variants: [
|
117 | {
|
118 | name: 'control',
|
119 | range: {
|
120 | start: 0,
|
121 | end: 100
|
122 | },
|
123 | original: true,
|
124 | code: 'control'
|
125 | },
|
126 | {
|
127 | name: 'variant',
|
128 | range: {
|
129 | start: 0,
|
130 | end: 0
|
131 | },
|
132 | original: false,
|
133 | code: 'variant'
|
134 | }
|
135 | ],
|
136 | tags: [],
|
137 | active: true,
|
138 | rebalance: true,
|
139 | code: 'feature_rebalance_toggle'
|
140 | }
|
141 | ]
|
142 | }
|
143 | };
|
144 |
|
145 | module.exports = mocks; |
\ | No newline at end of file |