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 30, 2024
1 parent b47f4ee commit 9f3017b
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 9f3017b

Please sign in to comment.