test: esm can be imported

This commit is contained in:
AJ ONeal 2024-08-29 17:00:30 -06:00
parent b47f4eeb31
commit 9f3017b2e9
No known key found for this signature in database
GPG Key ID: F1D692A76F70CF98
1 changed files with 12 additions and 0 deletions

12
tests/esm.mjs Normal file
View File

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