Skip to content

Commit

Permalink
chore: remove bad test
Browse files Browse the repository at this point in the history
  • Loading branch information
MisterMur committed Feb 16, 2025
1 parent 3f9e6de commit 6ef9cd4
Showing 1 changed file with 0 additions and 48 deletions.
48 changes: 0 additions & 48 deletions lib/src/cartesian/utils/transformInputData.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,53 +130,5 @@ describe("transformInputData", () => {
expect(y.y.i).toEqual([7, 5, 3]);
});

it("should not change the y-axis mapping when labelRotate is applied", () => {
const withoutRotation = transformInputData({
data: DATA,
xKey: "x",
yKeys: ["y", "z"],
outputWindow: OUTPUT_WINDOW,
xAxis: axes.xAxis,
yAxes: axes.yAxes,
});

const withPosRotation = transformInputData({
data: DATA,
xKey: "x",
yKeys: ["y", "z"],
outputWindow: OUTPUT_WINDOW,
xAxis: { ...axes.xAxis, labelRotate: 45 },
yAxes: axes.yAxes,
});

const withNegRotation = transformInputData({
data: DATA,
xKey: "x",
yKeys: ["y", "z"],
outputWindow: OUTPUT_WINDOW,
xAxis: { ...axes.xAxis, labelRotate: -45 },
yAxes: axes.yAxes,
});

expect([
withNegRotation.y.y.o,
withPosRotation.y.y.o,
withoutRotation.y.y.o,
]).toEqual([
withoutRotation.y.y.o,
withoutRotation.y.y.o,
withoutRotation.y.y.o,
]);
expect([
withNegRotation.y.z.o,
withPosRotation.y.z.o,
withoutRotation.y.z.o,
]).toEqual([
withoutRotation.y.z.o,
withoutRotation.y.z.o,
withoutRotation.y.z.o,
]);
});

// TODO: Some day, test the gridOptions code.
});

0 comments on commit 6ef9cd4

Please sign in to comment.