From 5752d2b8145a8892a437ba66cc9cca4bf74b696e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Mon, 23 Jan 2023 22:38:57 +0000 Subject: [PATCH] test verbosity --- ui/package.json | 3 ++- ui/tests/unit/rectangle.spec.ts | 10 +++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/ui/package.json b/ui/package.json index e379f32..0000d50 100644 --- a/ui/package.json +++ b/ui/package.json @@ -6,6 +6,7 @@ "serve": "vue-cli-service serve", "build": "vue-cli-service build", "test:unit": "vue-cli-service test:unit", + "test:unit-watch": "vue-cli-service test:unit --watch", "lint": "vue-cli-service lint" }, "dependencies": { @@ -38,4 +39,4 @@ "sass-loader": "^13.1.0", "typescript": "~4.5.5" } -} +} \ No newline at end of file diff --git a/ui/tests/unit/rectangle.spec.ts b/ui/tests/unit/rectangle.spec.ts index 94a7234..16a625c 100644 --- a/ui/tests/unit/rectangle.spec.ts +++ b/ui/tests/unit/rectangle.spec.ts @@ -59,15 +59,15 @@ describe("Rectangle Tests", () => { expect(r1.contains(v1)).true; expect(r1.contains(v2)).true; - expect(r1.contains(r1.origin)).true; - expect(r1.contains(r1.corner)).true; + expect(r1.contains(r1.origin)).to.be.true; + expect(r1.contains(r1.corner)).to.be.true; const vmid = new Vector2D((v1.x + v2.x) / 2, (v1.y + v2.y) / 2); - expect(r1.contains(vmid)).true; + expect(r1.contains(vmid)).to.be.true; }); it("should not contain certain points", () => { - expect(r1.contains(new Vector2D(0, 0))).false; - expect(r1.contains(new Vector2D(100, 100))).false; + expect(r1.contains(new Vector2D(0, 0))).to.be.false; + expect(r1.contains(new Vector2D(100, 100))).to.be.false; }); }); \ No newline at end of file