import { renderHook } from './../_node_modules/@testing-library/react/dist/@testing-library/react.esm.js';
import { useCompareValues } from "./useCompareValues.js";
import { usePreviousValue } from "./usePreviousValue.js";
const mockUsePreviousValue = jest.fn(() => {
  return "prev";
});
jest.mock("./usePreviousValue.ts");
usePreviousValue.mockImplementation(mockUsePreviousValue);
describe("useCompareValues", () => {
  it("should call use previous value & return true if values do not match", () => {
    const { result } = renderHook(() => useCompareValues("next"));
    expect(result.current).toBe(true);
  });
  it("should call use previous value & return false if values do match", () => {
    const { result } = renderHook(() => useCompareValues("prev"));
    expect(result.current).toBe(false);
  });
});
//# sourceMappingURL=useCompareValues.spec.js.map
