Skip to content

Commit fb67592

Browse files
committed
test: fix unit test
1 parent aa0680c commit fb67592

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+1555
-191
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`AreaChart should render without crashed 1`] = `<div />`;
3+
exports[`AreaChart should render without crashed 1`] = `
4+
<div>
5+
<div
6+
data-chart-source-type="G2Plot"
7+
size-sensor-id="1"
8+
>
9+
<div
10+
style="position:relative;"
11+
>
12+
<canvas
13+
height="400"
14+
style="width: 400px; height: 400px; display: inline-block; vertical-align: middle;"
15+
width="400"
16+
/>
17+
</div>
18+
<object
19+
class="size-sensor-object"
20+
data="about:blank"
21+
style="display: block; position: absolute; top: 0px; left: 0px; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1; opacity: 0;"
22+
tabindex="-1"
23+
type="text/html"
24+
/>
25+
</div>
26+
</div>
27+
`;
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`BarChart should render without crashed 1`] = `<div />`;
3+
exports[`BarChart should render without crashed 1`] = `
4+
<div>
5+
<div
6+
data-chart-source-type="G2Plot"
7+
size-sensor-id="1"
8+
>
9+
<div
10+
style="position:relative;"
11+
>
12+
<canvas
13+
height="400"
14+
style="width: 400px; height: 400px; display: inline-block; vertical-align: middle;"
15+
width="400"
16+
/>
17+
</div>
18+
<object
19+
class="size-sensor-object"
20+
data="about:blank"
21+
style="display: block; position: absolute; top: 0px; left: 0px; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1; opacity: 0;"
22+
tabindex="-1"
23+
type="text/html"
24+
/>
25+
</div>
26+
</div>
27+
`;
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`BidirectionalBarChart should render without crashed 1`] = `<div />`;
3+
exports[`BidirectionalBarChart should render without crashed 1`] = `
4+
<div>
5+
<div
6+
data-chart-source-type="G2Plot"
7+
size-sensor-id="1"
8+
>
9+
<div
10+
style="position:relative;"
11+
>
12+
<canvas
13+
height="400"
14+
style="width: 400px; height: 400px; display: inline-block; vertical-align: middle;"
15+
width="400"
16+
/>
17+
</div>
18+
<object
19+
class="size-sensor-object"
20+
data="about:blank"
21+
style="display: block; position: absolute; top: 0px; left: 0px; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1; opacity: 0;"
22+
tabindex="-1"
23+
type="text/html"
24+
/>
25+
</div>
26+
</div>
27+
`;
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`BoxChart should render without crashed 1`] = `<div />`;
3+
exports[`BoxChart should render without crashed 1`] = `
4+
<div>
5+
<div
6+
data-chart-source-type="G2Plot"
7+
size-sensor-id="1"
8+
>
9+
<div
10+
style="position:relative;"
11+
>
12+
<canvas
13+
height="400"
14+
style="width: 400px; height: 400px; display: inline-block; vertical-align: middle;"
15+
width="400"
16+
/>
17+
</div>
18+
<object
19+
class="size-sensor-object"
20+
data="about:blank"
21+
style="display: block; position: absolute; top: 0px; left: 0px; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1; opacity: 0;"
22+
tabindex="-1"
23+
type="text/html"
24+
/>
25+
</div>
26+
</div>
27+
`;
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`BulletChart should render without crashed 1`] = `<div />`;
3+
exports[`BulletChart should render without crashed 1`] = `
4+
<div>
5+
<div
6+
data-chart-source-type="G2Plot"
7+
size-sensor-id="1"
8+
>
9+
<div
10+
style="position:relative;"
11+
>
12+
<canvas
13+
height="400"
14+
style="width: 400px; height: 400px; display: inline-block; vertical-align: middle;"
15+
width="400"
16+
/>
17+
</div>
18+
<object
19+
class="size-sensor-object"
20+
data="about:blank"
21+
style="display: block; position: absolute; top: 0px; left: 0px; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1; opacity: 0;"
22+
tabindex="-1"
23+
type="text/html"
24+
/>
25+
</div>
26+
</div>
27+
`;
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`ChordChart should render without crashed 1`] = `<div />`;
3+
exports[`ChordChart should render without crashed 1`] = `
4+
<div>
5+
<div
6+
data-chart-source-type="G2Plot"
7+
size-sensor-id="1"
8+
>
9+
<div
10+
style="position:relative;"
11+
>
12+
<canvas
13+
height="400"
14+
style="width: 400px; height: 400px; display: inline-block; vertical-align: middle;"
15+
width="400"
16+
/>
17+
</div>
18+
<object
19+
class="size-sensor-object"
20+
data="about:blank"
21+
style="display: block; position: absolute; top: 0px; left: 0px; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1; opacity: 0;"
22+
tabindex="-1"
23+
type="text/html"
24+
/>
25+
</div>
26+
</div>
27+
`;
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`CirclePackingChart should render without crashed 1`] = `<div />`;
3+
exports[`CirclePackingChart should render without crashed 1`] = `
4+
<div>
5+
<div
6+
data-chart-source-type="G2Plot"
7+
size-sensor-id="1"
8+
>
9+
<div
10+
style="position:relative;"
11+
>
12+
<canvas
13+
height="400"
14+
style="width: 400px; height: 400px; display: inline-block; vertical-align: middle;"
15+
width="400"
16+
/>
17+
</div>
18+
<object
19+
class="size-sensor-object"
20+
data="about:blank"
21+
style="display: block; position: absolute; top: 0px; left: 0px; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1; opacity: 0;"
22+
tabindex="-1"
23+
type="text/html"
24+
/>
25+
</div>
26+
</div>
27+
`;
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`ColumnChart should render without crashed 1`] = `<div />`;
3+
exports[`ColumnChart should render without crashed 1`] = `
4+
<div>
5+
<div
6+
data-chart-source-type="G2Plot"
7+
size-sensor-id="1"
8+
>
9+
<div
10+
style="position:relative;"
11+
>
12+
<canvas
13+
height="400"
14+
style="width: 400px; height: 400px; display: inline-block; vertical-align: middle;"
15+
width="400"
16+
/>
17+
</div>
18+
<object
19+
class="size-sensor-object"
20+
data="about:blank"
21+
style="display: block; position: absolute; top: 0px; left: 0px; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1; opacity: 0;"
22+
tabindex="-1"
23+
type="text/html"
24+
/>
25+
</div>
26+
</div>
27+
`;
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`DualAxesChart should render without crashed 1`] = `<div />`;
3+
exports[`DualAxesChart should render without crashed 1`] = `
4+
<div>
5+
<div
6+
data-chart-source-type="G2Plot"
7+
size-sensor-id="1"
8+
>
9+
<div
10+
style="position:relative;"
11+
>
12+
<canvas
13+
height="400"
14+
style="width: 400px; height: 400px; display: inline-block; vertical-align: middle;"
15+
width="400"
16+
/>
17+
</div>
18+
<object
19+
class="size-sensor-object"
20+
data="about:blank"
21+
style="display: block; position: absolute; top: 0px; left: 0px; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1; opacity: 0;"
22+
tabindex="-1"
23+
type="text/html"
24+
/>
25+
</div>
26+
</div>
27+
`;
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`FacetChart should render without crashed 1`] = `<div />`;
3+
exports[`FacetChart should render without crashed 1`] = `
4+
<div>
5+
<div
6+
data-chart-source-type="G2Plot"
7+
size-sensor-id="1"
8+
>
9+
<div
10+
style="position:relative;"
11+
>
12+
<canvas
13+
height="400"
14+
style="width: 400px; height: 400px; display: inline-block; vertical-align: middle;"
15+
width="400"
16+
/>
17+
</div>
18+
<object
19+
class="size-sensor-object"
20+
data="about:blank"
21+
style="display: block; position: absolute; top: 0px; left: 0px; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1; opacity: 0;"
22+
tabindex="-1"
23+
type="text/html"
24+
/>
25+
</div>
26+
</div>
27+
`;
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`FunnelChart should render without crashed 1`] = `<div />`;
3+
exports[`FunnelChart should render without crashed 1`] = `
4+
<div>
5+
<div
6+
data-chart-source-type="G2Plot"
7+
size-sensor-id="1"
8+
>
9+
<div
10+
style="position:relative;"
11+
>
12+
<canvas
13+
height="400"
14+
style="width: 400px; height: 400px; display: inline-block; vertical-align: middle;"
15+
width="400"
16+
/>
17+
</div>
18+
<object
19+
class="size-sensor-object"
20+
data="about:blank"
21+
style="display: block; position: absolute; top: 0px; left: 0px; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1; opacity: 0;"
22+
tabindex="-1"
23+
type="text/html"
24+
/>
25+
</div>
26+
</div>
27+
`;
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`GaugeChart should render without crashed 1`] = `<div />`;
3+
exports[`GaugeChart should render without crashed 1`] = `
4+
<div>
5+
<div
6+
data-chart-source-type="G2Plot"
7+
size-sensor-id="1"
8+
>
9+
<div
10+
style="position:relative;"
11+
>
12+
<canvas
13+
height="400"
14+
style="width: 400px; height: 400px; display: inline-block; vertical-align: middle;"
15+
width="400"
16+
/>
17+
</div>
18+
<object
19+
class="size-sensor-object"
20+
data="about:blank"
21+
style="display: block; position: absolute; top: 0px; left: 0px; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1; opacity: 0;"
22+
tabindex="-1"
23+
type="text/html"
24+
/>
25+
</div>
26+
</div>
27+
`;
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`HeatmapChart should render without crashed 1`] = `<div />`;
3+
exports[`HeatmapChart should render without crashed 1`] = `
4+
<div>
5+
<div
6+
data-chart-source-type="G2Plot"
7+
>
8+
<div
9+
style="position:relative;"
10+
>
11+
<canvas
12+
height="500"
13+
style="width: 650px; height: 500px; display: inline-block; vertical-align: middle;"
14+
width="650"
15+
/>
16+
</div>
17+
</div>
18+
</div>
19+
`;
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`HistogramChart should render without crashed 1`] = `<div />`;
3+
exports[`HistogramChart should render without crashed 1`] = `
4+
<div>
5+
<div
6+
data-chart-source-type="G2Plot"
7+
size-sensor-id="1"
8+
>
9+
<div
10+
style="position:relative;"
11+
>
12+
<canvas
13+
height="400"
14+
style="width: 400px; height: 400px; display: inline-block; vertical-align: middle;"
15+
width="400"
16+
/>
17+
</div>
18+
<object
19+
class="size-sensor-object"
20+
data="about:blank"
21+
style="display: block; position: absolute; top: 0px; left: 0px; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1; opacity: 0;"
22+
tabindex="-1"
23+
type="text/html"
24+
/>
25+
</div>
26+
</div>
27+
`;

0 commit comments

Comments
 (0)