Skip to content

Commit 257c8f6

Browse files
committed
update test snaps
Signed-off-by: Dallas Nicol <[email protected]>
1 parent cb40081 commit 257c8f6

File tree

3 files changed

+276
-0
lines changed

3 files changed

+276
-0
lines changed
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`getAreaChartConfig should return area timeseries chart config 1`] = `
4+
Object {
5+
"axis": Object {
6+
"x": Object {
7+
"tick": Object {
8+
"format": [MockFunction],
9+
"rotate": -40,
10+
},
11+
"type": "timeseries",
12+
},
13+
"y": Object {
14+
"label": Object {
15+
"position": "outer-middle",
16+
"text": "Number of Hosts",
17+
},
18+
},
19+
},
20+
"color": Object {
21+
"pattern": Array [],
22+
},
23+
"data": Object {
24+
"colors": Object {},
25+
"columns": Array [
26+
Array [
27+
"time",
28+
2021-02-27T18:16:08.000Z,
29+
2021-02-27T18:45:00.000Z,
30+
],
31+
Array [
32+
"CentOS 7.9",
33+
3,
34+
5,
35+
],
36+
Array [
37+
"CentOS 7.6",
38+
2,
39+
1,
40+
],
41+
Array [
42+
"Fedora 32",
43+
1,
44+
2,
45+
],
46+
],
47+
"groups": Array [
48+
Array [
49+
"CentOS 7.9",
50+
"CentOS 7.6",
51+
"Fedora 32",
52+
],
53+
],
54+
"onclick": undefined,
55+
"x": "time",
56+
},
57+
"id": "some-id",
58+
"legend": Object {
59+
"show": true,
60+
},
61+
"onrendered": [Function],
62+
"padding": Object {
63+
"bottom": 60,
64+
"left": 60,
65+
"right": 20,
66+
"top": 10,
67+
},
68+
"size": undefined,
69+
"tooltip": Object {
70+
"format": Object {
71+
"name": [Function],
72+
},
73+
},
74+
}
75+
`;
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`getBarChartConfig shoud return small bar chart config 1`] = `
4+
Object {
5+
"axis": Object {
6+
"x": Object {
7+
"categories": Array [
8+
"Fedora 21",
9+
"Ubuntu 14.04",
10+
"Centos 7",
11+
"Debian 8",
12+
],
13+
"label": null,
14+
"type": "category",
15+
},
16+
"y": Object {
17+
"label": null,
18+
},
19+
},
20+
"color": Object {
21+
"pattern": Array [],
22+
},
23+
"data": Object {
24+
"columns": Array [
25+
Array [
26+
undefined,
27+
3,
28+
4,
29+
2,
30+
1,
31+
],
32+
],
33+
"onclick": undefined,
34+
},
35+
"id": "some-id",
36+
"legend": Object {
37+
"show": false,
38+
},
39+
"onrendered": [Function],
40+
"padding": null,
41+
"size": Object {
42+
"height": 290,
43+
},
44+
"tooltip": Object {
45+
"format": Object {
46+
"name": [Function],
47+
},
48+
},
49+
}
50+
`;
51+
52+
exports[`getBarChartConfig should return regular bar chart config 1`] = `
53+
Object {
54+
"axis": Object {
55+
"x": Object {
56+
"categories": Array [
57+
"Fedora 21",
58+
"Ubuntu 14.04",
59+
"Centos 7",
60+
"Debian 8",
61+
],
62+
"label": null,
63+
"type": "category",
64+
},
65+
"y": Object {
66+
"label": null,
67+
},
68+
},
69+
"color": Object {
70+
"pattern": Array [],
71+
},
72+
"data": Object {
73+
"columns": Array [
74+
Array [
75+
undefined,
76+
3,
77+
4,
78+
2,
79+
1,
80+
],
81+
],
82+
"onclick": undefined,
83+
},
84+
"id": "some-id",
85+
"legend": Object {
86+
"show": false,
87+
},
88+
"onrendered": [Function],
89+
"padding": null,
90+
"size": Object {
91+
"height": 350,
92+
"width": 350,
93+
},
94+
"tooltip": Object {
95+
"format": Object {
96+
"name": [Function],
97+
},
98+
},
99+
}
100+
`;
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`getLineChartConfig should get regular config 1`] = `
4+
Object {
5+
"axis": Object {},
6+
"color": Object {
7+
"pattern": Array [],
8+
},
9+
"data": Object {
10+
"colors": Object {
11+
"green": "#89A54E",
12+
"red": "#AA4643",
13+
},
14+
"columns": Array [
15+
Array [
16+
"red",
17+
5,
18+
7,
19+
9,
20+
],
21+
Array [
22+
"green",
23+
2,
24+
4,
25+
6,
26+
],
27+
],
28+
"onclick": [Function],
29+
},
30+
"id": "klm",
31+
"legend": Object {
32+
"show": true,
33+
},
34+
"onrendered": [Function],
35+
"padding": null,
36+
"size": Object {
37+
"height": 350,
38+
"width": 1000,
39+
},
40+
}
41+
`;
42+
43+
exports[`getLineChartConfig should get timeseries config 1`] = `
44+
Object {
45+
"axis": Object {
46+
"x": Object {
47+
"tick": Object {
48+
"format": [MockFunction],
49+
"rotate": -40,
50+
},
51+
"type": "timeseries",
52+
},
53+
},
54+
"color": Object {
55+
"pattern": Array [],
56+
},
57+
"data": Object {
58+
"colors": Object {
59+
"green": "#89A54E",
60+
"red": "#AA4643",
61+
},
62+
"columns": Array [
63+
Array [
64+
"red",
65+
5,
66+
7,
67+
9,
68+
],
69+
Array [
70+
"green",
71+
2,
72+
4,
73+
6,
74+
],
75+
Array [
76+
"x",
77+
1557014400000,
78+
1559779200000,
79+
1562457600000,
80+
],
81+
],
82+
"onclick": [Function],
83+
"x": "x",
84+
},
85+
"id": "pqr",
86+
"legend": Object {
87+
"show": true,
88+
},
89+
"onrendered": [Function],
90+
"padding": Object {
91+
"bottom": 70,
92+
"left": 30,
93+
"right": 20,
94+
"top": 10,
95+
},
96+
"size": Object {
97+
"height": 350,
98+
"width": 1000,
99+
},
100+
}
101+
`;

0 commit comments

Comments
 (0)