From 73712fad4993a8ac2daf0d792de70f53868aa9c6 Mon Sep 17 00:00:00 2001 From: jacoblee93 Date: Sun, 12 Jan 2025 23:00:55 -0800 Subject: [PATCH] Test name --- js/src/tests/jestlike/jest.test.ts | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/js/src/tests/jestlike/jest.test.ts b/js/src/tests/jestlike/jest.test.ts index 7998ab02d..28aeb6ccd 100644 --- a/js/src/tests/jestlike/jest.test.ts +++ b/js/src/tests/jestlike/jest.test.ts @@ -44,7 +44,7 @@ ls.describe( .toBeGreaterThanOrEqual(0.5); ls.logFeedback({ key: "coolness", - score: 0.5, + score: 0.9, }); ls.logOutput({ bar: "perfect", @@ -64,6 +64,10 @@ ls.describe( return { bar: "goodval" }; }; const res = myApp(); + ls.logFeedback({ + key: "coolness", + score: 0.8, + }); await ls .expect(res) .evaluatedBy(myEvaluator) @@ -80,6 +84,10 @@ ls.describe( return { bar: "bad" }; }; const res = myApp(); + ls.logFeedback({ + key: "coolness", + score: 0, + }); await ls .expect(res) .evaluatedBy(myEvaluator) @@ -112,6 +120,10 @@ ls.describe( const myApp = () => { return { bar: "bad" }; }; + ls.logFeedback({ + key: "coolness", + score: 0.2, + }); const res = myApp(); await ls .expect(res) @@ -120,7 +132,7 @@ ls.describe( return res; }); - test("Should test absolute closeness custom matcher", async () => { + test("Absolute closeness custom matcher", async () => { await ls.expect("foobar").toBeAbsoluteCloseTo("foobaz", { threshold: 3, }); @@ -132,7 +144,7 @@ ls.describe( }); }); - test("Should test relative closeness custom matcher", async () => { + test("Relative closeness custom matcher", async () => { await ls.expect("0123456789").toBeRelativeCloseTo("1123456789", { threshold: 0.1, });