From 04ec48517705e252a9905de4a3893cf68126dbf3 Mon Sep 17 00:00:00 2001 From: Daniel Rice Date: Fri, 15 Nov 2024 15:10:48 +0000 Subject: [PATCH] Update NonOverlappingLayout tests. --- .../nightingale-track/tests/NonOverlappingLayout.test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/nightingale-track/tests/NonOverlappingLayout.test.js b/packages/nightingale-track/tests/NonOverlappingLayout.test.js index ec15599c4..c4d7f92a5 100644 --- a/packages/nightingale-track/tests/NonOverlappingLayout.test.js +++ b/packages/nightingale-track/tests/NonOverlappingLayout.test.js @@ -38,7 +38,7 @@ 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", () => { @@ -46,10 +46,10 @@ describe("Layout bumping", () => { }); 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); }); });