From cbf67da2fa6efd50a2db9e12f92771c73cf17b05 Mon Sep 17 00:00:00 2001 From: Mario Campos Date: Wed, 1 Jul 2026 10:29:33 -0500 Subject: [PATCH] Adjust test name By @mbg Co-authored-by: Michael B. Gale --- src/json/index.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/json/index.test.ts b/src/json/index.test.ts index 3e96d7639..eb259c757 100644 --- a/src/json/index.test.ts +++ b/src/json/index.test.ts @@ -28,7 +28,7 @@ test("validateSchema - required properties are required", async (t) => { t.true(json.validateSchema(testSchema, { requiredKey: "foo" })); }); -test("validateSchema - optional properties are optional", async (t) => { +test("validateSchema - optionalOrNullSchema properties are optional or null", async (t) => { // Optional fields may be absent t.true(json.validateSchema(optionalOrNullSchema, {})); t.true(json.validateSchema(optionalOrNullSchema, { optionalKey: undefined })); @@ -49,7 +49,7 @@ const optionalSchema = { optionalKey: json.optional(json.string), }; -test("validateSchema - optional properties may be absent or undefined, but reject null", async (t) => { +test("validateSchema - optional properties are optional", async (t) => { // Optional fields may be absent or explicitly undefined t.true(json.validateSchema(optionalSchema, {})); t.true(json.validateSchema(optionalSchema, { optionalKey: undefined }));