UNPKG
@point-hub/papi
Version:
latest (0.5.30)
0.5.30
0.5.29
0.5.28
0.5.27
0.5.26
0.5.25
0.5.24
0.5.23
0.5.22
0.5.21
0.5.20
0.5.19
0.5.18
0.5.17
0.5.16
0.5.15
0.5.14
0.5.13
0.5.12
0.5.11
0.5.10
0.5.9
0.5.8
0.5.7
0.5.6
0.5.5
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
0.4.2
0.4.1
0.4.0
0.3.5
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
0.2.6
0.2.5
0.2.4
0.2.3
0.2.2
0.2.1
0.1.22
0.1.21
0.1.20
0.1.19
0.1.18
0.1.17
0.1.16
0.1.15
0.1.14
0.1.13
0.1.12
0.1.11
0.1.10
0.1.9
0.1.8
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
0.0.4
0.0.3
0.0.2
0.0.1
Point API Framework
point-hub/papi
@point-hub/papi
/
stub
/
command
/
index.spec.ts
12 lines
(8 loc)
•
254 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
import
{ expect, it, spyOn }
from
'bun:test'
import
NewCommand
from
'./index.command'
it
(
'test command'
,
() =>
{
const
newCommand =
new
NewCommand
()
const
spy =
spyOn
(newCommand,
'handle'
) newCommand.
handle
()
expect
(spy).
toHaveBeenCalled
() })