UNPKG
boajs
Version:
latest (1.2.10)
1.2.10
1.2.9
1.2.8
1.2.7
1.2.6
1.2.5
1.2.4
1.2.3
1.2.2
1.2.1
Use Python modules seamlessly in Node.js
github.com/alibaba/pipcook
alibaba/pipcook
boajs
/
tests
/
es-module-loaders
/
js
/
test-esm-loader-custom.mjs
8 lines
(6 loc)
•
249 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
import { strictEqual }
from
'assert'
; import {
add
, subtract }
from
'./test-esm-loader-math.mjs'
; import math
from
'./test-esm-loader-math.mjs'
;
// custom js
strictEqual(
add
(
1
,
2
), math.
add
(
1
,
2
)); strictEqual(subtract(
1
,
2
), math.subtract(
1
,
2
));