Updated test

This commit is contained in:
delvedor
2018-10-30 16:36:03 +01:00
parent c9635c4a71
commit 21a5c29aa8
2 changed files with 322 additions and 24 deletions

View File

@ -30,6 +30,22 @@ test('ndserialize', t => {
)
})
test('ndserialize (strings)', t => {
t.plan(1)
const s = new Serializer()
const obj = [
JSON.stringify({ hello: 'world' }),
JSON.stringify({ winter: 'is coming' }),
JSON.stringify({ you_know: 'for search' })
]
t.strictEqual(
s.ndserialize(obj),
obj[0] + '\n' +
obj[1] + '\n' +
obj[2] + '\n'
)
})
test('qserialize', t => {
t.plan(1)
const s = new Serializer()