From 81b73561452db9d56d3310c88200bbec393ca480 Mon Sep 17 00:00:00 2001 From: shmck Date: Sat, 20 Jun 2020 11:52:04 -0700 Subject: [PATCH] build without yaml step setup Signed-off-by: shmck --- src/schema/skeleton.ts | 2 +- tests/skeleton.test.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/schema/skeleton.ts b/src/schema/skeleton.ts index a44e461..4f57b63 100644 --- a/src/schema/skeleton.ts +++ b/src/schema/skeleton.ts @@ -171,7 +171,7 @@ export default { ], }, }, - required: ["id", "setup"], + required: ["id"], }, }, }, diff --git a/tests/skeleton.test.ts b/tests/skeleton.test.ts index fdcfeb2..4025bc8 100644 --- a/tests/skeleton.test.ts +++ b/tests/skeleton.test.ts @@ -217,7 +217,7 @@ describe("validate skeleton", () => { const valid = validateSkeleton(json); expect(valid).toBe(false); }); - it("should fail if step setup is missing", () => { + it("should not fail if step setup is missing", () => { const step1 = { ...validJson.levels[0].steps[0], setup: undefined }; const level1 = { ...validJson.levels[0], steps: [step1] }; const json = { @@ -226,7 +226,7 @@ describe("validate skeleton", () => { }; const valid = validateSkeleton(json); - expect(valid).toBe(false); + expect(valid).toBe(true); }); it("should fail if step setup is invalid", () => { const step1 = {