test: esm can be imported
This commit is contained in:
parent
b47f4eeb31
commit
9f3017b2e9
|
@ -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`);
|
Loading…
Reference in New Issue