Skip to content

Commit

Permalink
fix(test): update snapshot (#5755)
Browse files Browse the repository at this point in the history
  • Loading branch information
pearmini authored Nov 7, 2023
1 parent 7e24cc0 commit 61c8374
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 22 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 0 additions & 2 deletions __tests__/plots/animation/stocks-keyframe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,5 +265,3 @@ export async function stocksKeyframe(): Promise<G2Spec> {
// The tests point of rest of the keyframes will be test in other test cases.
const intervals = keyframes.map((_, i) => (i <= 2 ? [500] : false));
stocksKeyframe.intervals = [false, ...intervals];

stocksKeyframe.only = true;
19 changes: 19 additions & 0 deletions site/examples/general/interval/demo/column-min-height.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { Chart } from '@antv/g2';

const chart = new Chart({ container: 'container' });

chart
.interval()
.data([
{ genre: 'Sports', sold: 0 },
{ genre: 'Strategy', sold: 115 },
{ genre: 'Action', sold: 120 },
{ genre: 'Shooter', sold: 350 },
{ genre: 'Other', sold: 150 },
])
.encode('x', 'genre')
.encode('y', 'sold')
.encode('color', 'genre')
.style('minHeight', 50);

chart.render();
20 changes: 0 additions & 20 deletions site/examples/general/interval/demo/column-minHeight.ts

This file was deleted.

8 changes: 8 additions & 0 deletions site/examples/general/interval/demo/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@
},
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*fu-BSYg7U_kAAAAAAAAAAAAADmJ7AQ/original"
},
{
"filename": "column-min-height.ts",
"title": {
"zh": "限制高度的柱形图",
"en": "Column with minHeight"
},
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*bfqERaJK8e0AAAAAAAAAAAAADmJ7AQ/original"
},
{
"filename": "column-log.ts",
"title": {
Expand Down

0 comments on commit 61c8374

Please sign in to comment.