Skip to content

Commit

Permalink
Revert accidental change to test
Browse files Browse the repository at this point in the history
  • Loading branch information
bvaughn authored Jul 2, 2024
1 parent a6747bb commit f88c75f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/react-resizable-panels/src/PanelResizeHandle.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ import {
type PanelResizeHandleProps,
} from ".";
import { assert } from "./utils/assert";
import * as cursorUtils from "./utils/cursor";
import { getResizeHandleElement } from "./utils/dom/getResizeHandleElement";
import {
dispatchPointerEvent,
mockBoundingClientRect,
verifyAttribute,
} from "./utils/test-utils";
import * as cursorUtils from "./utils/cursor";

jest.mock("./utils/cursor", () => ({
getCursorStyle: jest.fn(),
Expand Down Expand Up @@ -50,13 +50,13 @@ describe("PanelResizeHandle", () => {
});

afterEach(() => {
jest.clearAllMocks();
jest.resetModules();

act(() => {
root.unmount();
});

jest.clearAllMocks();
jest.resetModules();

expect(expectedWarnings).toHaveLength(0);
});

Expand Down Expand Up @@ -268,7 +268,7 @@ describe("PanelResizeHandle", () => {
act(() => {
leftElement.focus();
});
// expect(document.activeElement).toBe(leftElement);
expect(document.activeElement).toBe(leftElement);
verifyAttribute(leftElement, "data-resize-handle-active", "keyboard");
verifyAttribute(rightElement, "data-resize-handle-active", null);

Expand Down Expand Up @@ -317,7 +317,7 @@ describe("PanelResizeHandle", () => {
});
});

fit("resets the global cursor style on unmount", () => {
it("resets the global cursor style on unmount", () => {
const onDraggingLeft = jest.fn();

const { leftElement } = setupMockedGroup({
Expand Down

0 comments on commit f88c75f

Please sign in to comment.