Skip to content

Commit

Permalink
test: update test case and snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
Aarebecca committed Mar 15, 2024
1 parent 7f68fd8 commit ce8eab5
Show file tree
Hide file tree
Showing 60 changed files with 1,016 additions and 3,412 deletions.
4 changes: 2 additions & 2 deletions packages/g6/__tests__/demo/case/combo-expand-collapse.ts
Expand Up @@ -25,12 +25,12 @@ export const comboExpandCollapse: STDTestCase = async (context) => {
},
node: {
style: {
labelText: (d: any) => d.id,
labelText: (d) => d.id,
},
},
combo: {
style: {
labelText: (d: any) => d.id,
labelText: (d) => d.id,
lineDash: 0,
collapsedLineDash: [5, 5],
},
Expand Down
4 changes: 2 additions & 2 deletions packages/g6/__tests__/demo/case/element-position-combo.ts
Expand Up @@ -21,12 +21,12 @@ export const elementPositionCombo: STDTestCase = async (context) => {
style: {
size: 20,
labelWordWrapWidth: 200,
labelText: (d: any) => d.id,
labelText: (d) => d.id,
},
},
combo: {
style: {
labelText: (d: any) => d.id,
labelText: (d) => d.id,
},
},
padding: 20,
Expand Down
8 changes: 4 additions & 4 deletions packages/g6/__tests__/demo/case/element-z-index.ts
Expand Up @@ -25,15 +25,15 @@ export const elementZIndex: STDTestCase = async (context) => {
node: {
style: {
size: 40,
labelText: (d: any) => d.id,
labelText: (d) => d.id,
labelWordWrapWidth: 200,
fill: (d: any, index: number) => ['red', 'green', 'blue'][index],
color: (d, index) => ['red', 'green', 'blue'][index],
},
},
combo: {
style: {
labelText: (d: any) => d.id,
fill: (d: any, index: number) => ['pink', 'cyan', 'purple', 'orange'][index],
labelText: (d) => d.id,
color: (d, index: number) => ['pink', 'cyan', 'purple', 'orange'][index],
},
},
behaviors: ['drag-element'],
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ce8eab5

Please sign in to comment.