Skip to content

Commit

Permalink
chore(test): remove log, compare Buffers
Browse files Browse the repository at this point in the history
  • Loading branch information
line-o authored and duncdrum committed Oct 26, 2022
1 parent be7d8b4 commit 501bb77
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions spec/tests/documents.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ test('binary document', function (t) {
const fh = await db.documents.upload(content, content.length)
st.ok(fh >= 0, 'returned filehandle:' + fh)
const r = await db.documents.parseLocal(fh, path)
st.ok(r)
st.ok(r, 'was parsed')
} catch (e) {
t.fail(e)
}
Expand All @@ -23,12 +23,11 @@ test('binary document', function (t) {
t.test('can be read', async function (st) {
try {
const readContent = await db.documents.readBinary(path)
console.log(readContent.toString())
st.equal(content.toString(), readContent.toString(), 'returned contents equal')
st.deepEqual(content, readContent, 'returned contents equal')
} catch (e) {
st.fail(e)
}
})
})
})

test('upload invalid XML', function (t) {
Expand Down

0 comments on commit 501bb77

Please sign in to comment.