Skip to content

Commit

Permalink
test: esm can be imported
Browse files Browse the repository at this point in the history
  • Loading branch information
coolaj86 committed Aug 29, 2024
1 parent 07e9012 commit 94bda03
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/esm.mjs
Original file line number Diff line number Diff line change
@@ -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`);

0 comments on commit 94bda03

Please sign in to comment.