mirror of
https://github.com/mathuo/dockview
synced 2025-08-14 21:26:01 +00:00
test: fix tests
This commit is contained in:
parent
c51597fde3
commit
db390583d7
@ -10,5 +10,5 @@ export function setMockRefElement(node: Partial<HTMLElement>): void {
|
||||
},
|
||||
};
|
||||
|
||||
jest.spyOn(React, 'useRef').mockReturnValue(mockRef);
|
||||
jest.spyOn(React, 'useRef').mockReturnValueOnce(mockRef);
|
||||
}
|
||||
|
@ -118,7 +118,9 @@ export const PaneviewReact = React.forwardRef(
|
||||
|
||||
React.useEffect(() => {
|
||||
if (!paneviewRef.current) {
|
||||
return;
|
||||
return () => {
|
||||
// noop
|
||||
};
|
||||
}
|
||||
|
||||
const paneview = paneviewRef.current;
|
||||
|
Loading…
x
Reference in New Issue
Block a user