From 9f3017b2e947b65c4090505627f759b6d89a895e Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 29 Aug 2024 17:00:30 -0600 Subject: [PATCH] test: esm can be imported --- tests/esm.mjs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/esm.mjs diff --git a/tests/esm.mjs b/tests/esm.mjs new file mode 100644 index 0000000..70ab827 --- /dev/null +++ b/tests/esm.mjs @@ -0,0 +1,12 @@ +"use strict"; + +import AJQueryExplicit from "../ajquery.mjs"; + +if (!AJQueryExplicit.$) { + throw new Error("did not export $ correctly"); +} +if (!AJQueryExplicit.$$) { + throw new Error("did not export $$ correctly"); +} + +console.log(`\x1b[34mPASS\x1b[33m`);