File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff 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
3433test ( 'upload invalid XML' , function ( t ) {
You can’t perform that action at this time.
0 commit comments