git ssb

0+

dangerousbeans / yap



forked from Dominic / yap

Tree: c8b6c573917bfcfaade1205400b4a5ef965bad06

Files: c8b6c573917bfcfaade1205400b4a5ef965bad06 / test / util.js

356 bytesRaw
1
2var tape = require('tape')
3
4var u = require('../util')
5
6tape('clean', function (t) {
7 t.deepEqual(u.cleanOpts({
8 private: undefined,
9 content: {channel: 'foo'}
10 }),
11 {content: {channel: 'foo'}}
12 )
13 t.deepEqual(u.cleanOpts({one: 1}),
14 {one: 1}
15 )
16 t.deepEqual(u.cleanOpts({undef: undefined}),
17 undefined
18 )
19
20 t.end()
21})
22
23
24
25
26
27
28
29

Built with git-ssb-web