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`);