Skip to content

Commit

Permalink
extra test
Browse files Browse the repository at this point in the history
  • Loading branch information
lavrton committed Dec 6, 2024
1 parent 375f336 commit ebe5bd9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/react-konva-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ describe('initial mounting and refs', () => {
layerRef = React.useRef<Konva.Layer>(null);
rectRef = React.useRef<Konva.Rect>(null);

React.useEffect(() => {
expect(stageRef.current instanceof Konva.Stage).to.be.true;
});

return (
<Stage ref={stageRef}>
<Layer ref={layerRef}>
Expand Down

0 comments on commit ebe5bd9

Please sign in to comment.