This repository was archived by the owner on Mar 10, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +72
-36
lines changed Expand file tree Collapse file tree 3 files changed +72
-36
lines changed Original file line number Diff line number Diff line change @@ -67,42 +67,54 @@ module.exports = (createCommon, options) => {
6767 expect ( err ) . to . not . exist ( )
6868
6969 expect ( files ) . to . eql ( [
70- { depth : 1 ,
70+ {
71+ depth : 1 ,
7172 name : 'alice.txt' ,
7273 path : 'QmVvjDy7yF7hdnqE8Hrf4MHo5ABDtb5AbX6hWbD3Y42bXP/alice.txt' ,
7374 size : 11685 ,
7475 hash : 'QmZyUEQVuRK3XV7L9Dk26pg6RVSgaYkiSTEdnT2kZZdwoi' ,
75- type : 'file' } ,
76- { depth : 1 ,
76+ type : 'file'
77+ } ,
78+ {
79+ depth : 1 ,
7780 name : 'empty-folder' ,
7881 path : 'QmVvjDy7yF7hdnqE8Hrf4MHo5ABDtb5AbX6hWbD3Y42bXP/empty-folder' ,
7982 size : 0 ,
8083 hash : 'QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn' ,
81- type : 'dir' } ,
82- { depth : 1 ,
84+ type : 'dir'
85+ } ,
86+ {
87+ depth : 1 ,
8388 name : 'files' ,
8489 path : 'QmVvjDy7yF7hdnqE8Hrf4MHo5ABDtb5AbX6hWbD3Y42bXP/files' ,
8590 size : 0 ,
8691 hash : 'QmZ25UfTqXGz9RsEJFg7HUAuBcmfx5dQZDXQd2QEZ8Kj74' ,
87- type : 'dir' } ,
88- { depth : 1 ,
92+ type : 'dir'
93+ } ,
94+ {
95+ depth : 1 ,
8996 name : 'holmes.txt' ,
9097 path : 'QmVvjDy7yF7hdnqE8Hrf4MHo5ABDtb5AbX6hWbD3Y42bXP/holmes.txt' ,
9198 size : 581878 ,
9299 hash : 'QmR4nFjTu18TyANgC65ArNWp5Yaab1gPzQ4D8zp7Kx3vhr' ,
93- type : 'file' } ,
94- { depth : 1 ,
100+ type : 'file'
101+ } ,
102+ {
103+ depth : 1 ,
95104 name : 'jungle.txt' ,
96105 path : 'QmVvjDy7yF7hdnqE8Hrf4MHo5ABDtb5AbX6hWbD3Y42bXP/jungle.txt' ,
97106 size : 2294 ,
98107 hash : 'QmT6orWioMiSqXXPGsUi71CKRRUmJ8YkuueV2DPV34E9y9' ,
99- type : 'file' } ,
100- { depth : 1 ,
108+ type : 'file'
109+ } ,
110+ {
111+ depth : 1 ,
101112 name : 'pp.txt' ,
102113 path : 'QmVvjDy7yF7hdnqE8Hrf4MHo5ABDtb5AbX6hWbD3Y42bXP/pp.txt' ,
103114 size : 4540 ,
104115 hash : 'QmVwdDCY4SPGVFnNCiZnX5CtzwWDn6kAM98JXzKxE3kCmn' ,
105- type : 'file' }
116+ type : 'file'
117+ }
106118 ] )
107119 done ( )
108120 } )
Original file line number Diff line number Diff line change @@ -63,42 +63,54 @@ module.exports = (createCommon, options) => {
6363
6464 stream . pipe ( concat ( ( files ) => {
6565 expect ( files ) . to . eql ( [
66- { depth : 1 ,
66+ {
67+ depth : 1 ,
6768 name : 'alice.txt' ,
6869 path : 'QmVvjDy7yF7hdnqE8Hrf4MHo5ABDtb5AbX6hWbD3Y42bXP/alice.txt' ,
6970 size : 11685 ,
7071 hash : 'QmZyUEQVuRK3XV7L9Dk26pg6RVSgaYkiSTEdnT2kZZdwoi' ,
71- type : 'file' } ,
72- { depth : 1 ,
72+ type : 'file'
73+ } ,
74+ {
75+ depth : 1 ,
7376 name : 'empty-folder' ,
7477 path : 'QmVvjDy7yF7hdnqE8Hrf4MHo5ABDtb5AbX6hWbD3Y42bXP/empty-folder' ,
7578 size : 0 ,
7679 hash : 'QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn' ,
77- type : 'dir' } ,
78- { depth : 1 ,
80+ type : 'dir'
81+ } ,
82+ {
83+ depth : 1 ,
7984 name : 'files' ,
8085 path : 'QmVvjDy7yF7hdnqE8Hrf4MHo5ABDtb5AbX6hWbD3Y42bXP/files' ,
8186 size : 0 ,
8287 hash : 'QmZ25UfTqXGz9RsEJFg7HUAuBcmfx5dQZDXQd2QEZ8Kj74' ,
83- type : 'dir' } ,
84- { depth : 1 ,
88+ type : 'dir'
89+ } ,
90+ {
91+ depth : 1 ,
8592 name : 'holmes.txt' ,
8693 path : 'QmVvjDy7yF7hdnqE8Hrf4MHo5ABDtb5AbX6hWbD3Y42bXP/holmes.txt' ,
8794 size : 581878 ,
8895 hash : 'QmR4nFjTu18TyANgC65ArNWp5Yaab1gPzQ4D8zp7Kx3vhr' ,
89- type : 'file' } ,
90- { depth : 1 ,
96+ type : 'file'
97+ } ,
98+ {
99+ depth : 1 ,
91100 name : 'jungle.txt' ,
92101 path : 'QmVvjDy7yF7hdnqE8Hrf4MHo5ABDtb5AbX6hWbD3Y42bXP/jungle.txt' ,
93102 size : 2294 ,
94103 hash : 'QmT6orWioMiSqXXPGsUi71CKRRUmJ8YkuueV2DPV34E9y9' ,
95- type : 'file' } ,
96- { depth : 1 ,
104+ type : 'file'
105+ } ,
106+ {
107+ depth : 1 ,
97108 name : 'pp.txt' ,
98109 path : 'QmVvjDy7yF7hdnqE8Hrf4MHo5ABDtb5AbX6hWbD3Y42bXP/pp.txt' ,
99110 size : 4540 ,
100111 hash : 'QmVwdDCY4SPGVFnNCiZnX5CtzwWDn6kAM98JXzKxE3kCmn' ,
101- type : 'file' }
112+ type : 'file'
113+ }
102114 ] )
103115 done ( )
104116 } ) )
Original file line number Diff line number Diff line change @@ -66,42 +66,54 @@ module.exports = (createCommon, options) => {
6666 expect ( err ) . to . not . exist ( )
6767
6868 expect ( files ) . to . eql ( [
69- { depth : 1 ,
69+ {
70+ depth : 1 ,
7071 name : 'alice.txt' ,
7172 path : 'QmVvjDy7yF7hdnqE8Hrf4MHo5ABDtb5AbX6hWbD3Y42bXP/alice.txt' ,
7273 size : 11685 ,
7374 hash : 'QmZyUEQVuRK3XV7L9Dk26pg6RVSgaYkiSTEdnT2kZZdwoi' ,
74- type : 'file' } ,
75- { depth : 1 ,
75+ type : 'file'
76+ } ,
77+ {
78+ depth : 1 ,
7679 name : 'empty-folder' ,
7780 path : 'QmVvjDy7yF7hdnqE8Hrf4MHo5ABDtb5AbX6hWbD3Y42bXP/empty-folder' ,
7881 size : 0 ,
7982 hash : 'QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn' ,
80- type : 'dir' } ,
81- { depth : 1 ,
83+ type : 'dir'
84+ } ,
85+ {
86+ depth : 1 ,
8287 name : 'files' ,
8388 path : 'QmVvjDy7yF7hdnqE8Hrf4MHo5ABDtb5AbX6hWbD3Y42bXP/files' ,
8489 size : 0 ,
8590 hash : 'QmZ25UfTqXGz9RsEJFg7HUAuBcmfx5dQZDXQd2QEZ8Kj74' ,
86- type : 'dir' } ,
87- { depth : 1 ,
91+ type : 'dir'
92+ } ,
93+ {
94+ depth : 1 ,
8895 name : 'holmes.txt' ,
8996 path : 'QmVvjDy7yF7hdnqE8Hrf4MHo5ABDtb5AbX6hWbD3Y42bXP/holmes.txt' ,
9097 size : 581878 ,
9198 hash : 'QmR4nFjTu18TyANgC65ArNWp5Yaab1gPzQ4D8zp7Kx3vhr' ,
92- type : 'file' } ,
93- { depth : 1 ,
99+ type : 'file'
100+ } ,
101+ {
102+ depth : 1 ,
94103 name : 'jungle.txt' ,
95104 path : 'QmVvjDy7yF7hdnqE8Hrf4MHo5ABDtb5AbX6hWbD3Y42bXP/jungle.txt' ,
96105 size : 2294 ,
97106 hash : 'QmT6orWioMiSqXXPGsUi71CKRRUmJ8YkuueV2DPV34E9y9' ,
98- type : 'file' } ,
99- { depth : 1 ,
107+ type : 'file'
108+ } ,
109+ {
110+ depth : 1 ,
100111 name : 'pp.txt' ,
101112 path : 'QmVvjDy7yF7hdnqE8Hrf4MHo5ABDtb5AbX6hWbD3Y42bXP/pp.txt' ,
102113 size : 4540 ,
103114 hash : 'QmVwdDCY4SPGVFnNCiZnX5CtzwWDn6kAM98JXzKxE3kCmn' ,
104- type : 'file' }
115+ type : 'file'
116+ }
105117 ] )
106118 done ( )
107119 } )
You can’t perform that action at this time.
0 commit comments