From 48bd5a7b9df6037147171c7ee6f3f153ae314957 Mon Sep 17 00:00:00 2001 From: Martin M Date: Wed, 17 Apr 2024 09:25:22 +0200 Subject: [PATCH] Allow (deprecated) HTML as admin UI in package tests (#596) Co-authored-by: AlCalzone --- src/tests/packageFiles/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/tests/packageFiles/index.ts b/src/tests/packageFiles/index.ts index 8d75466..82440b4 100644 --- a/src/tests/packageFiles/index.ts +++ b/src/tests/packageFiles/index.ts @@ -256,15 +256,16 @@ export function validatePackageFiles(adapterDir: string): void { iopackContent.common.noConfig === "true" || iopackContent.common.adminUI?.config === "none"; if (!hasNoConfigPage) { - it("The adapter uses Material UI or JSON Config for the admin UI", () => { + it("The adapter uses a supported admin UI", () => { const hasSupportedUI = !!iopackContent.common.materialize || + iopackContent.common.adminUI?.config === "html" || iopackContent.common.adminUI?.config === "json" || iopackContent.common.adminUI?.config === "materialize"; expect( hasSupportedUI, - "Unsupported Admin UI, must be materialize or json config!", + "Unsupported Admin UI, must be html, materialize or JSON config!", ).to.be.true; }); }