зеркало из
https://github.com/coolaj86/ajquery.js.git
synced 2024-11-16 17:29:02 +00:00
test: esm can be imported
Этот коммит содержится в:
родитель
b47f4eeb31
Коммит
9f3017b2e9
12
tests/esm.mjs
Обычный файл
12
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`);
|
Загрузка…
x
Ссылка в новой задаче
Block a user