Skip to content

Commit

Permalink
test: fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
kagawagao committed Dec 18, 2024
1 parent aa0680c commit fb67592
Show file tree
Hide file tree
Showing 76 changed files with 1,555 additions and 191 deletions.
26 changes: 25 additions & 1 deletion __tests__/plots/__snapshots__/area.spec.tsx.snap
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`AreaChart should render without crashed 1`] = `<div />`;
exports[`AreaChart should render without crashed 1`] = `
<div>
<div
data-chart-source-type="G2Plot"
size-sensor-id="1"
>
<div
style="position:relative;"
>
<canvas
height="400"
style="width: 400px; height: 400px; display: inline-block; vertical-align: middle;"
width="400"
/>
</div>
<object
class="size-sensor-object"
data="about:blank"
style="display: block; position: absolute; top: 0px; left: 0px; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1; opacity: 0;"
tabindex="-1"
type="text/html"
/>
</div>
</div>
`;
26 changes: 25 additions & 1 deletion __tests__/plots/__snapshots__/bar.spec.tsx.snap
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`BarChart should render without crashed 1`] = `<div />`;
exports[`BarChart should render without crashed 1`] = `
<div>
<div
data-chart-source-type="G2Plot"
size-sensor-id="1"
>
<div
style="position:relative;"
>
<canvas
height="400"
style="width: 400px; height: 400px; display: inline-block; vertical-align: middle;"
width="400"
/>
</div>
<object
class="size-sensor-object"
data="about:blank"
style="display: block; position: absolute; top: 0px; left: 0px; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1; opacity: 0;"
tabindex="-1"
type="text/html"
/>
</div>
</div>
`;
26 changes: 25 additions & 1 deletion __tests__/plots/__snapshots__/bidirectional-bar.spec.tsx.snap
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`BidirectionalBarChart should render without crashed 1`] = `<div />`;
exports[`BidirectionalBarChart should render without crashed 1`] = `
<div>
<div
data-chart-source-type="G2Plot"
size-sensor-id="1"
>
<div
style="position:relative;"
>
<canvas
height="400"
style="width: 400px; height: 400px; display: inline-block; vertical-align: middle;"
width="400"
/>
</div>
<object
class="size-sensor-object"
data="about:blank"
style="display: block; position: absolute; top: 0px; left: 0px; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1; opacity: 0;"
tabindex="-1"
type="text/html"
/>
</div>
</div>
`;
26 changes: 25 additions & 1 deletion __tests__/plots/__snapshots__/box.spec.tsx.snap
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`BoxChart should render without crashed 1`] = `<div />`;
exports[`BoxChart should render without crashed 1`] = `
<div>
<div
data-chart-source-type="G2Plot"
size-sensor-id="1"
>
<div
style="position:relative;"
>
<canvas
height="400"
style="width: 400px; height: 400px; display: inline-block; vertical-align: middle;"
width="400"
/>
</div>
<object
class="size-sensor-object"
data="about:blank"
style="display: block; position: absolute; top: 0px; left: 0px; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1; opacity: 0;"
tabindex="-1"
type="text/html"
/>
</div>
</div>
`;
26 changes: 25 additions & 1 deletion __tests__/plots/__snapshots__/bullet.spec.tsx.snap
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`BulletChart should render without crashed 1`] = `<div />`;
exports[`BulletChart should render without crashed 1`] = `
<div>
<div
data-chart-source-type="G2Plot"
size-sensor-id="1"
>
<div
style="position:relative;"
>
<canvas
height="400"
style="width: 400px; height: 400px; display: inline-block; vertical-align: middle;"
width="400"
/>
</div>
<object
class="size-sensor-object"
data="about:blank"
style="display: block; position: absolute; top: 0px; left: 0px; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1; opacity: 0;"
tabindex="-1"
type="text/html"
/>
</div>
</div>
`;
26 changes: 25 additions & 1 deletion __tests__/plots/__snapshots__/chord.spec.tsx.snap
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`ChordChart should render without crashed 1`] = `<div />`;
exports[`ChordChart should render without crashed 1`] = `
<div>
<div
data-chart-source-type="G2Plot"
size-sensor-id="1"
>
<div
style="position:relative;"
>
<canvas
height="400"
style="width: 400px; height: 400px; display: inline-block; vertical-align: middle;"
width="400"
/>
</div>
<object
class="size-sensor-object"
data="about:blank"
style="display: block; position: absolute; top: 0px; left: 0px; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1; opacity: 0;"
tabindex="-1"
type="text/html"
/>
</div>
</div>
`;
26 changes: 25 additions & 1 deletion __tests__/plots/__snapshots__/circle-packing.spec.tsx.snap
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`CirclePackingChart should render without crashed 1`] = `<div />`;
exports[`CirclePackingChart should render without crashed 1`] = `
<div>
<div
data-chart-source-type="G2Plot"
size-sensor-id="1"
>
<div
style="position:relative;"
>
<canvas
height="400"
style="width: 400px; height: 400px; display: inline-block; vertical-align: middle;"
width="400"
/>
</div>
<object
class="size-sensor-object"
data="about:blank"
style="display: block; position: absolute; top: 0px; left: 0px; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1; opacity: 0;"
tabindex="-1"
type="text/html"
/>
</div>
</div>
`;
26 changes: 25 additions & 1 deletion __tests__/plots/__snapshots__/column.spec.tsx.snap
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`ColumnChart should render without crashed 1`] = `<div />`;
exports[`ColumnChart should render without crashed 1`] = `
<div>
<div
data-chart-source-type="G2Plot"
size-sensor-id="1"
>
<div
style="position:relative;"
>
<canvas
height="400"
style="width: 400px; height: 400px; display: inline-block; vertical-align: middle;"
width="400"
/>
</div>
<object
class="size-sensor-object"
data="about:blank"
style="display: block; position: absolute; top: 0px; left: 0px; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1; opacity: 0;"
tabindex="-1"
type="text/html"
/>
</div>
</div>
`;
26 changes: 25 additions & 1 deletion __tests__/plots/__snapshots__/dual-axes.spec.tsx.snap
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`DualAxesChart should render without crashed 1`] = `<div />`;
exports[`DualAxesChart should render without crashed 1`] = `
<div>
<div
data-chart-source-type="G2Plot"
size-sensor-id="1"
>
<div
style="position:relative;"
>
<canvas
height="400"
style="width: 400px; height: 400px; display: inline-block; vertical-align: middle;"
width="400"
/>
</div>
<object
class="size-sensor-object"
data="about:blank"
style="display: block; position: absolute; top: 0px; left: 0px; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1; opacity: 0;"
tabindex="-1"
type="text/html"
/>
</div>
</div>
`;
26 changes: 25 additions & 1 deletion __tests__/plots/__snapshots__/facet.spec.tsx.snap
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`FacetChart should render without crashed 1`] = `<div />`;
exports[`FacetChart should render without crashed 1`] = `
<div>
<div
data-chart-source-type="G2Plot"
size-sensor-id="1"
>
<div
style="position:relative;"
>
<canvas
height="400"
style="width: 400px; height: 400px; display: inline-block; vertical-align: middle;"
width="400"
/>
</div>
<object
class="size-sensor-object"
data="about:blank"
style="display: block; position: absolute; top: 0px; left: 0px; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1; opacity: 0;"
tabindex="-1"
type="text/html"
/>
</div>
</div>
`;
26 changes: 25 additions & 1 deletion __tests__/plots/__snapshots__/funnel.spec.tsx.snap
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`FunnelChart should render without crashed 1`] = `<div />`;
exports[`FunnelChart should render without crashed 1`] = `
<div>
<div
data-chart-source-type="G2Plot"
size-sensor-id="1"
>
<div
style="position:relative;"
>
<canvas
height="400"
style="width: 400px; height: 400px; display: inline-block; vertical-align: middle;"
width="400"
/>
</div>
<object
class="size-sensor-object"
data="about:blank"
style="display: block; position: absolute; top: 0px; left: 0px; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1; opacity: 0;"
tabindex="-1"
type="text/html"
/>
</div>
</div>
`;
26 changes: 25 additions & 1 deletion __tests__/plots/__snapshots__/gauge.spec.tsx.snap
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`GaugeChart should render without crashed 1`] = `<div />`;
exports[`GaugeChart should render without crashed 1`] = `
<div>
<div
data-chart-source-type="G2Plot"
size-sensor-id="1"
>
<div
style="position:relative;"
>
<canvas
height="400"
style="width: 400px; height: 400px; display: inline-block; vertical-align: middle;"
width="400"
/>
</div>
<object
class="size-sensor-object"
data="about:blank"
style="display: block; position: absolute; top: 0px; left: 0px; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1; opacity: 0;"
tabindex="-1"
type="text/html"
/>
</div>
</div>
`;
18 changes: 17 additions & 1 deletion __tests__/plots/__snapshots__/heatmap.spec.tsx.snap
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`HeatmapChart should render without crashed 1`] = `<div />`;
exports[`HeatmapChart should render without crashed 1`] = `
<div>
<div
data-chart-source-type="G2Plot"
>
<div
style="position:relative;"
>
<canvas
height="500"
style="width: 650px; height: 500px; display: inline-block; vertical-align: middle;"
width="650"
/>
</div>
</div>
</div>
`;
26 changes: 25 additions & 1 deletion __tests__/plots/__snapshots__/histogram.spec.tsx.snap
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`HistogramChart should render without crashed 1`] = `<div />`;
exports[`HistogramChart should render without crashed 1`] = `
<div>
<div
data-chart-source-type="G2Plot"
size-sensor-id="1"
>
<div
style="position:relative;"
>
<canvas
height="400"
style="width: 400px; height: 400px; display: inline-block; vertical-align: middle;"
width="400"
/>
</div>
<object
class="size-sensor-object"
data="about:blank"
style="display: block; position: absolute; top: 0px; left: 0px; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1; opacity: 0;"
tabindex="-1"
type="text/html"
/>
</div>
</div>
`;
Loading

0 comments on commit fb67592

Please sign in to comment.