UNPKG
sao-nm
Version:
canary (1.1.3-canary.14.6c3f3b8.0)
latest (1.1.2)
next (0.3.0-alpha.0)
1.1.3-canary.14.6c3f3b8.0
1.1.2
1.1.1
1.1.0
1.0.1
1.0.0
0.3.0-alpha.0
0.2.2
0.2.1
0.2.0
0.1.1
0.1.0
Scaffolding out a node module.
github.com/saojs/sao-nm
saojs/sao-nm
sao-nm
/
template
/
test
/
index.test.js
10 lines
(8 loc)
•
237 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
<%_
if
(compile) { -%>
import
<%=
this
.
camelcase
(name) %>
from
'../src'
<%_ }
else
{ -%>
const
<%=
this
.
camelcase
(name) %> =
require
(
'../'
) <%_ } -%>
test
(
'main'
,
() =>
{
expect
(
typeof
<%=
this
.
camelcase
(name) %>).
toBe
(
'function'
) })