From 992b48b9c3a2cc4aab18d6ce8daf0e64150ac61f Mon Sep 17 00:00:00 2001 From: Albin Ramovic Date: Fri, 8 Nov 2024 11:14:56 +0100 Subject: [PATCH] remove the check if the package is undefined --- __tests__/ordCdsrc.test.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/__tests__/ordCdsrc.test.js b/__tests__/ordCdsrc.test.js index ab1b89d..53b8f80 100644 --- a/__tests__/ordCdsrc.test.js +++ b/__tests__/ordCdsrc.test.js @@ -39,16 +39,12 @@ describe("Tests for default ORD document when .cdsrc.json is present", () => { test("PartOfPackage values are valid ORD IDs ", () => { for (const apiResource of document.apiResources) { - if (!apiResource.partOfPackage) continue; - expect(apiResource.partOfPackage).toMatch(PACKAGE_ID_REGEX); } }); test("The partOfPackage references an existing package", () => { for (const apiResource of document.apiResources) { - if (!apiResource.partOfPackage) continue; - expect( document.packages.find( (pck) => pck.ordId === apiResource.partOfPackage