From 9de6f2d080f61044d1a200a1c046c299e9d882be Mon Sep 17 00:00:00 2001 From: BluJ Date: Tue, 2 May 2023 09:25:43 -0600 Subject: [PATCH] chore: Fix the test descriptions and values --- lib/test/configBuilder.test.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/test/configBuilder.test.ts b/lib/test/configBuilder.test.ts index 25fb249..cad9e1b 100644 --- a/lib/test/configBuilder.test.ts +++ b/lib/test/configBuilder.test.ts @@ -64,10 +64,10 @@ describe("values", () => { expect(() => validator.unsafeCast(null)).toThrowError() testOutput()(null) }) - test("text", async () => { + test("text with default", async () => { const value = Value.text({ name: "Testing", - required: { default: "null" }, + required: { default: "this is a default value" }, }) const validator = value.validator const rawIs = await value.build({} as any) @@ -336,10 +336,10 @@ describe("values", () => { default: null, }) }) - test("text", async () => { + test("text with default", async () => { const value = Value.dynamicText(async () => ({ name: "Testing", - required: { default: "null" }, + required: { default: "this is a default value" }, })) const validator = value.validator validator.unsafeCast("test text") @@ -348,7 +348,7 @@ describe("values", () => { expect(await value.build(fakeOptions)).toMatchObject({ name: "Testing", required: true, - default: "null", + default: "this is a default value", }) }) test("optional text", async () => {