UNPKG
@yucom/rest-server
Version:
latest (1.2.0)
1.2.0
1.1.0
1.0.0
0.3.1
0.3.0
0.2.1
0.2.0
0.1.3
0.1.2
0.1.1
Preconfigured rest-server
github.com/yucom-util/rest-server
yucom-util/rest-server
@yucom/rest-server
/
test
/
index.test.ts
10 lines
(8 loc)
•
223 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
import
{
CreateServer
, $id }
from
'../src'
;
it
(
'CreateServer'
,
async
function
(
) {
let
app =
CreateServer
(); app.
get
.
people
[$id](
id
=>
({ id })); app.
listen
();
await
app.
ready
();
await
app.
close
(); });