mirror of
https://code.lenaisten.de/Lenaisten/advent22.git
synced 2026-02-25 02:20:17 +00:00
🩹 fix lint errors in unit tests
This commit is contained in:
parent
1eab05a6ea
commit
8735260bc3
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue