foreman-tasks 12.2.3 → 12.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,275 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`BreadcrumbBar reducer should handle FOREMAN_TASKS_DASHBOARD_FETCH_TASKS_SUMMARY_FAILURE 1`] = `
4
- Object {
5
- "error": [Error: some error],
6
- "isLoading": false,
7
- "isLoadingTasksSummary": false,
8
- "tasksSummary": Object {
9
- "paused": Object {
10
- "recent": 0,
11
- "total": 0,
12
- },
13
- "running": Object {
14
- "recent": 0,
15
- "total": 0,
16
- },
17
- "scheduled": Object {
18
- "total": 0,
19
- },
20
- "stopped": Object {
21
- "by_result": Object {
22
- "error": Object {
23
- "recent": 0,
24
- "total": 0,
25
- },
26
- "success": Object {
27
- "recent": 0,
28
- "total": 0,
29
- },
30
- "warning": Object {
31
- "recent": 0,
32
- "total": 0,
33
- },
34
- },
35
- },
36
- },
37
- "time": "H24",
38
- }
39
- `;
40
-
41
- exports[`BreadcrumbBar reducer should handle FOREMAN_TASKS_DASHBOARD_FETCH_TASKS_SUMMARY_REQUEST 1`] = `
42
- Object {
43
- "error": null,
44
- "isLoading": true,
45
- "isLoadingTasksSummary": false,
46
- "tasksSummary": Object {
47
- "paused": Object {
48
- "recent": 0,
49
- "total": 0,
50
- },
51
- "running": Object {
52
- "recent": 0,
53
- "total": 0,
54
- },
55
- "scheduled": Object {
56
- "total": 0,
57
- },
58
- "stopped": Object {
59
- "by_result": Object {
60
- "error": Object {
61
- "recent": 0,
62
- "total": 0,
63
- },
64
- "success": Object {
65
- "recent": 0,
66
- "total": 0,
67
- },
68
- "warning": Object {
69
- "recent": 0,
70
- "total": 0,
71
- },
72
- },
73
- },
74
- },
75
- "time": "H24",
76
- }
77
- `;
78
-
79
- exports[`BreadcrumbBar reducer should handle FOREMAN_TASKS_DASHBOARD_FETCH_TASKS_SUMMARY_SUCCESS 1`] = `
80
- Object {
81
- "error": null,
82
- "isLoading": false,
83
- "isLoadingTasksSummary": false,
84
- "tasksSummary": "some-payload",
85
- "time": "H24",
86
- }
87
- `;
88
-
89
- exports[`BreadcrumbBar reducer should handle FOREMAN_TASKS_DASHBOARD_INIT 1`] = `
90
- Object {
91
- "error": null,
92
- "isLoadingTasksSummary": false,
93
- "query": undefined,
94
- "tasksSummary": Object {
95
- "paused": Object {
96
- "recent": 0,
97
- "total": 0,
98
- },
99
- "running": Object {
100
- "recent": 0,
101
- "total": 0,
102
- },
103
- "scheduled": Object {
104
- "total": 0,
105
- },
106
- "stopped": Object {
107
- "by_result": Object {
108
- "error": Object {
109
- "recent": 0,
110
- "total": 0,
111
- },
112
- "success": Object {
113
- "recent": 0,
114
- "total": 0,
115
- },
116
- "warning": Object {
117
- "recent": 0,
118
- "total": 0,
119
- },
120
- },
121
- },
122
- },
123
- "time": "H24",
124
- }
125
- `;
126
-
127
- exports[`BreadcrumbBar reducer should handle FOREMAN_TASKS_DASHBOARD_INIT with data 1`] = `
128
- Object {
129
- "error": null,
130
- "isLoadingTasksSummary": false,
131
- "query": "some-query",
132
- "tasksSummary": Object {
133
- "paused": Object {
134
- "recent": 0,
135
- "total": 0,
136
- },
137
- "running": Object {
138
- "recent": 0,
139
- "total": 0,
140
- },
141
- "scheduled": Object {
142
- "total": 0,
143
- },
144
- "stopped": Object {
145
- "by_result": Object {
146
- "error": Object {
147
- "recent": 0,
148
- "total": 0,
149
- },
150
- "success": Object {
151
- "recent": 0,
152
- "total": 0,
153
- },
154
- "warning": Object {
155
- "recent": 0,
156
- "total": 0,
157
- },
158
- },
159
- },
160
- },
161
- "time": "some-time",
162
- }
163
- `;
164
-
165
- exports[`BreadcrumbBar reducer should handle FOREMAN_TASKS_DASHBOARD_UPDATE_QUERY 1`] = `
166
- Object {
167
- "error": null,
168
- "isLoadingTasksSummary": false,
169
- "query": "some-query",
170
- "tasksSummary": Object {
171
- "paused": Object {
172
- "recent": 0,
173
- "total": 0,
174
- },
175
- "running": Object {
176
- "recent": 0,
177
- "total": 0,
178
- },
179
- "scheduled": Object {
180
- "total": 0,
181
- },
182
- "stopped": Object {
183
- "by_result": Object {
184
- "error": Object {
185
- "recent": 0,
186
- "total": 0,
187
- },
188
- "success": Object {
189
- "recent": 0,
190
- "total": 0,
191
- },
192
- "warning": Object {
193
- "recent": 0,
194
- "total": 0,
195
- },
196
- },
197
- },
198
- },
199
- "time": "H24",
200
- }
201
- `;
202
-
203
- exports[`BreadcrumbBar reducer should handle FOREMAN_TASKS_DASHBOARD_UPDATE_TIME 1`] = `
204
- Object {
205
- "error": null,
206
- "isLoadingTasksSummary": false,
207
- "tasksSummary": Object {
208
- "paused": Object {
209
- "recent": 0,
210
- "total": 0,
211
- },
212
- "running": Object {
213
- "recent": 0,
214
- "total": 0,
215
- },
216
- "scheduled": Object {
217
- "total": 0,
218
- },
219
- "stopped": Object {
220
- "by_result": Object {
221
- "error": Object {
222
- "recent": 0,
223
- "total": 0,
224
- },
225
- "success": Object {
226
- "recent": 0,
227
- "total": 0,
228
- },
229
- "warning": Object {
230
- "recent": 0,
231
- "total": 0,
232
- },
233
- },
234
- },
235
- },
236
- "time": "some-time",
237
- }
238
- `;
239
-
240
- exports[`BreadcrumbBar reducer should return the initial state 1`] = `
241
- Object {
242
- "error": null,
243
- "isLoadingTasksSummary": false,
244
- "tasksSummary": Object {
245
- "paused": Object {
246
- "recent": 0,
247
- "total": 0,
248
- },
249
- "running": Object {
250
- "recent": 0,
251
- "total": 0,
252
- },
253
- "scheduled": Object {
254
- "total": 0,
255
- },
256
- "stopped": Object {
257
- "by_result": Object {
258
- "error": Object {
259
- "recent": 0,
260
- "total": 0,
261
- },
262
- "success": Object {
263
- "recent": 0,
264
- "total": 0,
265
- },
266
- "warning": Object {
267
- "recent": 0,
268
- "total": 0,
269
- },
270
- },
271
- },
272
- },
273
- "time": "H24",
274
- }
275
- `;
@@ -1,119 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`TasksDashboard - Selectors should calcStoppedOther 1`] = `16`;
4
-
5
- exports[`TasksDashboard - Selectors should select query 1`] = `"some-query"`;
6
-
7
- exports[`TasksDashboard - Selectors should select query when state is empty 1`] = `Object {}`;
8
-
9
- exports[`TasksDashboard - Selectors should select tasks-dashboard 1`] = `
10
- Object {
11
- "query": "some-query",
12
- "tasksSummary": Object {
13
- "paused": Object {
14
- "recent": 2,
15
- "total": 9,
16
- },
17
- "running": Object {
18
- "recent": 3,
19
- "total": 8,
20
- },
21
- "scheduled": Object {
22
- "total": 6,
23
- },
24
- "stopped": Object {
25
- "by_result": Object {
26
- "cancelled": Object {
27
- "recent": 3,
28
- "total": 5,
29
- },
30
- "error": Object {
31
- "recent": 1,
32
- "total": 9,
33
- },
34
- "pending": Object {
35
- "recent": 4,
36
- "total": 11,
37
- },
38
- "success": Object {
39
- "recent": 3,
40
- "total": 7,
41
- },
42
- "warning": Object {
43
- "recent": 2,
44
- "total": 8,
45
- },
46
- },
47
- },
48
- },
49
- "time": "some-time",
50
- }
51
- `;
52
-
53
- exports[`TasksDashboard - Selectors should select tasks-dashboard when state is empty 1`] = `Object {}`;
54
-
55
- exports[`TasksDashboard - Selectors should select tasks-summary 1`] = `
56
- Object {
57
- "paused": Object {
58
- "last": 2,
59
- "older": 7,
60
- },
61
- "running": Object {
62
- "last": 3,
63
- "older": 5,
64
- },
65
- "scheduled": 6,
66
- "stopped": Object {
67
- "other": 16,
68
- "results": Object {
69
- "error": Object {
70
- "last": 1,
71
- "total": 9,
72
- },
73
- "success": Object {
74
- "last": 3,
75
- "total": 7,
76
- },
77
- "warning": Object {
78
- "last": 2,
79
- "total": 8,
80
- },
81
- },
82
- },
83
- }
84
- `;
85
-
86
- exports[`TasksDashboard - Selectors should select tasks-summary when state is empty 1`] = `
87
- Object {
88
- "paused": Object {
89
- "last": 0,
90
- "older": 0,
91
- },
92
- "running": Object {
93
- "last": 0,
94
- "older": 0,
95
- },
96
- "scheduled": 0,
97
- "stopped": Object {
98
- "other": 0,
99
- "results": Object {
100
- "error": Object {
101
- "last": 0,
102
- "total": 0,
103
- },
104
- "success": Object {
105
- "last": 0,
106
- "total": 0,
107
- },
108
- "warning": Object {
109
- "last": 0,
110
- "total": 0,
111
- },
112
- },
113
- },
114
- }
115
- `;
116
-
117
- exports[`TasksDashboard - Selectors should select time 1`] = `"some-time"`;
118
-
119
- exports[`TasksDashboard - Selectors should select time when state is empty 1`] = `"H24"`;