Skip to content

Commit

Permalink
fix: react dom version
Browse files Browse the repository at this point in the history
  • Loading branch information
lxfu1 committed Nov 28, 2023
1 parent 19cd63a commit 3ea1294
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/flowchart/tests/graph/normal-spec.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { createRoot } from 'react-dom/client';
import ReactDOM from 'react-dom';
import { act } from 'react-dom/test-utils';
import { Flowchart } from '../../src';

Expand Down Expand Up @@ -40,7 +40,7 @@ describe('Flowchart render', () => {
};

act(() => {
createRoot(container).render(
ReactDOM.render(
<Flowchart
data={DATA}
onSave={(d) => {
Expand Down Expand Up @@ -118,6 +118,7 @@ describe('Flowchart render', () => {
// graph.loadData(DATA);
}}
/>,
container,
);
});
const flowchartContainer = document.getElementsByClassName('xflow-canvas-container')[0];
Expand Down

0 comments on commit 3ea1294

Please sign in to comment.