Skip to content

Commit

Permalink
Allow (deprecated) HTML as admin UI in package tests (#596)
Browse files Browse the repository at this point in the history
Co-authored-by: AlCalzone <[email protected]>
  • Loading branch information
mcm1957 and AlCalzone authored Apr 17, 2024
1 parent d9a54c3 commit 48bd5a7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/tests/packageFiles/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
}
Expand Down

0 comments on commit 48bd5a7

Please sign in to comment.