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