UNPKG
@pipcook/boa-cloud
Version:
beta (2.0.0-beta.7)
latest (2.0.0-beta.1)
2.0.0-beta.7
2.0.0-beta.6
2.0.0-beta.5
2.0.0-beta.4
2.0.0-beta.3
2.0.0-beta.1
Use Python modules seamlessly in Node.js
github.com/alibaba/pipcook
alibaba/pipcook
@pipcook/boa-cloud
/
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
));