Skip to content

Commit

Permalink
remove the check if the package is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
aramovic79 committed Nov 8, 2024
1 parent bfc8ae2 commit 992b48b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions __tests__/ordCdsrc.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 992b48b

Please sign in to comment.