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
/
base
/
utils.js
10 lines
(8 loc)
•
250 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
const
test = require(
'ava'
);
const
utils = require(
'../../lib/utils'
); test(
'utils.getIndent'
, t => { t.
is
(utils.getIndent([
''
]),
0
); t.
is
(utils.getIndent([
' '
]),
0
); t.
is
(utils.getIndent([
' s'
]),
1
); t.
is
(utils.getIndent([
' s s'
]),
1
); });