import { invert } from "./invert";

describe("invert", () => {
    it("should return undefined if the inverted value is undefined", () => {
        const scale = new BandScale();
        // @ts-ignore: Disabled for testing purposes
        spyOn(scale, "invert").and.returnValue(undefined);
        const inverted = invert(scale, 0);
        expect(inverted).toBeUndefined();
    });
