Updated test

This commit is contained in:
delvedor
2018-12-03 18:08:20 +01:00
parent fd738f8425
commit bf4adf0546
6 changed files with 382 additions and 36 deletions

View File

@ -74,6 +74,20 @@ test('qserialize (array)', t => {
)
})
test('qserialize (string)', t => {
t.plan(1)
const s = new Serializer()
const obj = {
hello: 'world',
you_know: 'for search'
}
t.strictEqual(
s.qserialize(stringify(obj)),
stringify(obj)
)
})
test('SerializationError', t => {
t.plan(1)
const s = new Serializer()