UNPKG
scratchdb
Version:
latest (1.0.0)
1.0.0
A ephemeral CouchDB-like database
github.com/tlvince/scratchdb
tlvince/scratchdb
scratchdb
/
test.js
13 lines
(9 loc)
•
248 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
'use strict'
var
assert =
require
(
'assert'
)
var
scratchdb =
require
(
'./'
)
function
test
(
server
) {
// https://nodejs.org/api/net.html#net_class_net_server
assert.
ok
(server.
address
,
'has an address method'
) server.
close
() }
scratchdb
(test)