From bdd17b9464faec159070e9cd995519780c71c162 Mon Sep 17 00:00:00 2001 From: Andrew Hosgood Date: Thu, 14 Sep 2023 16:02:40 +0100 Subject: [PATCH] Update tests --- tasks/test-package.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tasks/test-package.js b/tasks/test-package.js index 9c0cd294..b2779a88 100644 --- a/tasks/test-package.js +++ b/tasks/test-package.js @@ -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 (