UNPKG

react-resizable-panels

Version:

React components for resizable panel groups/layouts

10 lines (8 loc) 292 B
import { compareLayouts } from "./compareLayouts"; describe("compareLayouts", () => { it("should work", () => { expect(compareLayouts([1, 2], [1])).toBe(false); expect(compareLayouts([1], [1, 2])).toBe(false); expect(compareLayouts([1, 2, 3], [1, 2, 3])).toBe(true); }); });