mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
chore: bump @testing-library/react
12.1.5
-> 16.0.0
(#8322)
This commit is contained in:
parent
3cf14c73a3
commit
f19ce30dfe
52 changed files with 1035 additions and 978 deletions
|
@ -1,3 +1,4 @@
|
|||
import React from "react";
|
||||
import ReactDOM from "react-dom";
|
||||
import type { ExcalidrawElement } from "../element/types";
|
||||
import { CODES, KEYS } from "../keys";
|
||||
|
@ -55,7 +56,7 @@ beforeEach(async () => {
|
|||
finger2.reset();
|
||||
|
||||
await render(<Excalidraw handleKeyboardGlobally={true} />);
|
||||
h.setState({ height: 768, width: 1024 });
|
||||
API.setAppState({ height: 768, width: 1024 });
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
|
@ -757,7 +758,7 @@ describe("regression tests", () => {
|
|||
width: 500,
|
||||
height: 500,
|
||||
});
|
||||
h.elements = [rect1, rect2];
|
||||
API.setElements([rect1, rect2]);
|
||||
|
||||
mouse.select(rect1);
|
||||
|
||||
|
@ -793,7 +794,7 @@ describe("regression tests", () => {
|
|||
width: 500,
|
||||
height: 500,
|
||||
});
|
||||
h.elements = [rect1, rect2];
|
||||
API.setElements([rect1, rect2]);
|
||||
|
||||
mouse.select(rect1);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue