🩹 fix lint errors in unit tests

This commit is contained in:
Jörn-Michael Miehe 2026-02-22 13:09:56 +00:00
parent 1eab05a6ea
commit 8735260bc3

View file

@ -29,14 +29,17 @@ describe("Rectangle Tests", () => {
} }
it("should create a default rectangle", () => { it("should create a default rectangle", () => {
expect.hasAssertions();
check_rectangle(new Rectangle(), 0, 0, 0, 0); check_rectangle(new Rectangle(), 0, 0, 0, 0);
}); });
it("should create a rectangle", () => { it("should create a rectangle", () => {
expect.hasAssertions();
check_rectangle(r1, 1, 2, 3, 4); check_rectangle(r1, 1, 2, 3, 4);
}); });
it("should create the same rectangle backwards", () => { it("should create the same rectangle backwards", () => {
expect.hasAssertions();
check_rectangle(r2, 1, 2, 3, 4); check_rectangle(r2, 1, 2, 3, 4);
}); });
@ -67,6 +70,7 @@ describe("Rectangle Tests", () => {
}); });
it("should update a rectangle", () => { it("should update a rectangle", () => {
expect.hasAssertions();
const v = new Vector2D(1, 1); const v = new Vector2D(1, 1);
check_rectangle(r1.update(v1.plus(v), undefined), 2, 3, 2, 3); check_rectangle(r1.update(v1.plus(v), undefined), 2, 3, 2, 3);
@ -83,6 +87,7 @@ describe("Rectangle Tests", () => {
}); });
it("should move a rectangle", () => { it("should move a rectangle", () => {
expect.hasAssertions();
const v = new Vector2D(1, 1); const v = new Vector2D(1, 1);
check_rectangle(r1.move(v), 2, 3, 3, 4); check_rectangle(r1.move(v), 2, 3, 3, 4);