Skip to content

Commit

Permalink
style: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Aarebecca committed Dec 23, 2024
1 parent 05de4e0 commit a2e04d5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/g6/__tests__/demos/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ export { pluginTimebar } from './plugin-timebar';
export { pluginToolbarBuildIn } from './plugin-toolbar-build-in';
export { pluginToolbarIconfont } from './plugin-toolbar-iconfont';
export { pluginTooltip } from './plugin-tooltip';
export { pluginTooltipAsync } from './plugin-tooltip-async';
export { pluginTooltipDual } from './plugin-tooltip-dual';
export { pluginTooltipEnable } from './plugin-tooltip-enable';
export { pluginTooltipAsync } from './plugin-tooltip-async';
export { pluginWatermark } from './plugin-watermark';
export { pluginWatermarkImage } from './plugin-watermark-image';
export { theme } from './theme';
Expand Down
6 changes: 2 additions & 4 deletions packages/g6/__tests__/demos/plugin-tooltip-async.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ export const pluginTooltipAsync: TestCase = async (context) => {
const graph = new Graph({
...context,
data: {
nodes: [
{ id: 'node1', style: { x: 150, y: 100 }, data: { desc: 'get content async test' } },
],
nodes: [{ id: 'node1', style: { x: 150, y: 100 }, data: { desc: 'get content async test' } }],
},
node: {
style: {
Expand All @@ -22,7 +20,7 @@ export const pluginTooltipAsync: TestCase = async (context) => {
getContent: (evt: IElementEvent, items: ElementDatum[]) => {
return new Promise((resolve) => {
resolve(items[0].data?.desc || '');
})
});
},
},
],
Expand Down
2 changes: 1 addition & 1 deletion packages/g6/__tests__/unit/plugins/tooltip.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Tooltip } from '@/src';
import { ComboEvent, EdgeEvent, NodeEvent, idOf } from '@/src';
import { pluginTooltip, pluginTooltipEnable, pluginTooltipAsync } from '@@/demos';
import { pluginTooltip, pluginTooltipAsync, pluginTooltipEnable } from '@@/demos';
import { createDemoGraph } from '@@/utils';

describe('plugin tooltip', () => {
Expand Down

0 comments on commit a2e04d5

Please sign in to comment.