This repository was archived by the owner on Aug 12, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +24
-15
lines changed
Expand file tree Collapse file tree 1 file changed +24
-15
lines changed Original file line number Diff line number Diff line change @@ -94,21 +94,30 @@ module.exports = function (repo) {
9494 importer ( ds ) ,
9595 pull . collect ( ( err , files ) => {
9696 expect ( err ) . to . not . exist
97-
98- expect ( stringifyMh ( files ) ) . to . be . eql ( [ {
99- path : 'foo/bar/200Bytes.txt' ,
100- multihash : 'QmQmZQxSKQppbsWfVzBvg59Cn3DKtsNVQ94bjAxg2h3Lb8' ,
101- size : 211
102- } , {
103- path : 'foo/bar' ,
104- multihash : 'Qmf5BQbTUyUAvd6Ewct83GYGnE1F6btiC3acLhR8MDxgkD' ,
105- size : 270
106- } , {
107- path : 'foo' ,
108- multihash : 'QmQrb6KKWGo8w7zKfx2JksptY6wN7B2ysSBdKZr4xMU36d' ,
109- size : 320
110- } ] )
111-
97+ expect ( files . length ) . to . equal ( 3 )
98+ stringifyMh ( files ) . forEach ( ( file ) => {
99+ if ( file . path === 'foo/bar/200Bytes.txt' ) {
100+ expect ( file ) . to . be . eql ( {
101+ path : 'foo/bar/200Bytes.txt' ,
102+ multihash : 'QmQmZQxSKQppbsWfVzBvg59Cn3DKtsNVQ94bjAxg2h3Lb8' ,
103+ size : 211
104+ } )
105+ }
106+ if ( file . path === 'foo' ) {
107+ expect ( file ) . to . be . eql ( {
108+ path : 'foo' ,
109+ multihash : 'QmQrb6KKWGo8w7zKfx2JksptY6wN7B2ysSBdKZr4xMU36d' ,
110+ size : 320
111+ } )
112+ }
113+ if ( file . path === 'foo/bar' ) {
114+ expect ( file ) . to . be . eql ( {
115+ path : 'foo/bar' ,
116+ multihash : 'Qmf5BQbTUyUAvd6Ewct83GYGnE1F6btiC3acLhR8MDxgkD' ,
117+ size : 270
118+ } )
119+ }
120+ } )
112121 done ( )
113122 } )
114123 )
You can’t perform that action at this time.
0 commit comments