Skip to content

Commit 501bb77

Browse files
line-oduncdrum
authored andcommitted
chore(test): remove log, compare Buffers
1 parent be7d8b4 commit 501bb77

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

spec/tests/documents.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ test('binary document', function (t) {
1414
const fh = await db.documents.upload(content, content.length)
1515
st.ok(fh >= 0, 'returned filehandle:' + fh)
1616
const r = await db.documents.parseLocal(fh, path)
17-
st.ok(r)
17+
st.ok(r, 'was parsed')
1818
} catch (e) {
1919
t.fail(e)
2020
}
@@ -23,12 +23,11 @@ test('binary document', function (t) {
2323
t.test('can be read', async function (st) {
2424
try {
2525
const readContent = await db.documents.readBinary(path)
26-
console.log(readContent.toString())
27-
st.equal(content.toString(), readContent.toString(), 'returned contents equal')
26+
st.deepEqual(content, readContent, 'returned contents equal')
2827
} catch (e) {
2928
st.fail(e)
3029
}
31-
})
30+
})
3231
})
3332

3433
test('upload invalid XML', function (t) {

0 commit comments

Comments
 (0)