Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Sep 14, 2023
1 parent 4453509 commit bdd17b9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tasks/test-package.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,15 @@ if (
console.error(` 🔴 [FAIL] all.js function missing: initAll()`);
process.exit();
}
if (
Object.keys(jsAllPackage).includes("Cookies") &&
typeof jsAllPackage.Cookies === "function"
) {
console.log(` 🟢 [PASS] all.js class exists: Cookies`);
} else {
console.error(` 🔴 [FAIL] all.js class missing: Cookies`);
process.exit();
}
Object.keys(componentsWithJavaScript).forEach((component) => {
const componentClass = componentsWithJavaScript[component];
if (
Expand Down

0 comments on commit bdd17b9

Please sign in to comment.