Skip to content

Commit

Permalink
🐛 fix(common): clean eslint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
萌萌的老胖子 committed Mar 2, 2020
1 parent e31f81c commit 9a51056
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Expand Up @@ -24,7 +24,7 @@ describe('<ContextMenu />', () => {
const mockCallback = jest.fn(() => {});

// TODO icon 测试
const { asFragment, queryByText, rerender, getByText, unmount } = render(
const { asFragment, queryByText, rerender, getByText } = render(
<ContextMenu
graph={mockGraph}
options={[
Expand Down
@@ -1,5 +1,5 @@
import React from 'react';
import { render, act, fireEvent, cleanup } from '@testing-library/react';
import { render } from '@testing-library/react';
import '@testing-library/jest-dom/extend-expect';
import Graphin from '@antv/graphin/src/Graphin';

Expand All @@ -15,7 +15,7 @@ describe('<Toolbar />', () => {
name: 'force',
};

const { asFragment, queryAllByTestId } = render(
render(
<Graphin data={data} layout={layout}>
<Toolbar />
</Graphin>,
Expand Down
2 changes: 1 addition & 1 deletion packages/graphin/src/events/change-zoom.ts
Expand Up @@ -7,7 +7,7 @@ interface ExtendedG6Event extends G6Event {
}

const changeZoom = (graphin: Graphin) => {
const { graph, state, g6Options } = graphin;
const { graph, g6Options } = graphin;
// const { forceSimulation } = state;

const {
Expand Down

0 comments on commit 9a51056

Please sign in to comment.