UNPKG
hello-world-node-pkg
Version:
latest (3.0.0)
3.0.0
2.0.0
1.0.0
Hello World
github.com/talktopreeti/node
talktopreeti/node
hello-world-node-pkg
/
test.js
9 lines
(7 loc)
•
257 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
const
expect =
require
(
'chai'
).
expect
;
const
myapp =
require
(
"."
);
describe
(
'Testing printMsg function, should return "Hello World!" '
,
() =>
{
it
(
'Should Return Hello World!'
,
() =>
{
expect
(myapp.
printMsg
()).
to
.
equal
(
"Hello World!"
); }); });