From d0feaed4901623dd8dfe5c43c86af4900f67c508 Mon Sep 17 00:00:00 2001 From: Junhao Liao Date: Sat, 9 Nov 2024 16:47:47 -0500 Subject: [PATCH] Update test description. --- test/utils/math.test.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test/utils/math.test.ts b/test/utils/math.test.ts index 96432c40..42dea11c 100644 --- a/test/utils/math.test.ts +++ b/test/utils/math.test.ts @@ -21,9 +21,12 @@ describe("clamp", () => { expect(clamp(100, 1, 10)).toBe(10); }); - test("returns the upper boundary when max is less than min", () => { - expect(clamp(5, 10, 1)).toBe(1); - }); + test( + "returns the upper boundary when the upper boundary is less than the lower boundary", + () => { + expect(clamp(5, 10, 1)).toBe(1); + } + ); }); describe("getChunkNum", () => {