Skip to content

Commit d0feaed

Browse files
committed
Update test description.
1 parent 45884f7 commit d0feaed

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

test/utils/math.test.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,12 @@ describe("clamp", () => {
2121
expect(clamp(100, 1, 10)).toBe(10);
2222
});
2323

24-
test("returns the upper boundary when max is less than min", () => {
25-
expect(clamp(5, 10, 1)).toBe(1);
26-
});
24+
test(
25+
"returns the upper boundary when the upper boundary is less than the lower boundary",
26+
() => {
27+
expect(clamp(5, 10, 1)).toBe(1);
28+
}
29+
);
2730
});
2831

2932
describe("getChunkNum", () => {

0 commit comments

Comments
 (0)