Skip to content

Commit

Permalink
Update NonOverlappingLayout tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlrice committed Nov 15, 2024
1 parent ad87c89 commit 04ec485
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/nightingale-track/tests/NonOverlappingLayout.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,18 @@ describe("Layout bumping", () => {
});

test("should be on second row", () => {
expect(layout.getFeatureYPos(features[1])).toEqual(8);
expect(layout.getFeatureYPos(features[1])).toBeCloseTo(7.3333, 3);
});

test("should be back on first row", () => {
expect(layout.getFeatureYPos(features[2])).toEqual(2);
});

test("should be back on third row", () => {
expect(layout.getFeatureYPos(features[3])).toEqual(14);
expect(layout.getFeatureYPos(features[3])).toBeCloseTo(12.6666, 3);
});

test("should be on second row", () => {
expect(layout.getFeatureYPos(features[4])).toEqual(8);
test("should be on second row again", () => {
expect(layout.getFeatureYPos(features[4])).toBeCloseTo(7.3333, 3);
});
});

0 comments on commit 04ec485

Please sign in to comment.