@@ -67,8 +67,7 @@ describe('.object', () => {
67
67
expect ( err ) . to . not . exist
68
68
69
69
expect ( res ) . to . be . eql ( {
70
- Hash : 'QmPTkMuuL6PD8L2SwTwbcs1NPg14U8mRzerB1ZrrBrkSDD' ,
71
- Links : [ ]
70
+ Hash : 'QmPTkMuuL6PD8L2SwTwbcs1NPg14U8mRzerB1ZrrBrkSDD'
72
71
} )
73
72
done ( )
74
73
} )
@@ -87,8 +86,7 @@ describe('.object', () => {
87
86
. addLink ( testObjectHash , 'next' , testPatchObjectHash , ( err , res ) => {
88
87
expect ( err ) . to . not . exist
89
88
expect ( res ) . to . be . eql ( {
90
- Hash : 'QmZFdJ3CQsY4kkyQtjoUo8oAzsEs5BNguxBhp8sjQMpgkd' ,
91
- Links : null
89
+ Hash : 'QmZFdJ3CQsY4kkyQtjoUo8oAzsEs5BNguxBhp8sjQMpgkd'
92
90
} )
93
91
apiClients . a . object . get ( res . Hash , ( err , res ) => {
94
92
expect ( err ) . to . not . exist
@@ -110,8 +108,7 @@ describe('.object', () => {
110
108
. rmLink ( 'QmZFdJ3CQsY4kkyQtjoUo8oAzsEs5BNguxBhp8sjQMpgkd' , 'next' , ( err , res ) => {
111
109
expect ( err ) . to . not . exist
112
110
expect ( res ) . to . be . eql ( {
113
- Hash : testObjectHash ,
114
- Links : null
111
+ Hash : testObjectHash
115
112
} )
116
113
apiClients . a . object . get ( res . Hash , ( err , res ) => {
117
114
expect ( err ) . to . not . exist
@@ -129,8 +126,7 @@ describe('.object', () => {
129
126
. appendData ( testObjectHash , new Buffer ( ' hello' ) , ( err , res ) => {
130
127
expect ( err ) . to . not . exist
131
128
expect ( res ) . to . be . eql ( {
132
- Hash : 'Qmcjhr2QztQxCAoEf8tJPTGTVkTsUrTQ36JurH14DNYNsc' ,
133
- Links : null
129
+ Hash : 'Qmcjhr2QztQxCAoEf8tJPTGTVkTsUrTQ36JurH14DNYNsc'
134
130
} )
135
131
apiClients . a . object . get ( res . Hash , ( err , res ) => {
136
132
expect ( err ) . to . not . exist
@@ -147,8 +143,7 @@ describe('.object', () => {
147
143
. setData ( testObjectHash , new Buffer ( 'hello world' ) , ( err , res ) => {
148
144
expect ( err ) . to . not . exist
149
145
expect ( res ) . to . be . eql ( {
150
- Hash : 'QmU1Sq1B7RPQD2XcQNLB58qJUyJffVJqihcxmmN1STPMxf' ,
151
- Links : null
146
+ Hash : 'QmU1Sq1B7RPQD2XcQNLB58qJUyJffVJqihcxmmN1STPMxf'
152
147
} )
153
148
apiClients . a . object . get ( res . Hash , ( err , res ) => {
154
149
expect ( err ) . to . not . exist
@@ -166,8 +161,7 @@ describe('.object', () => {
166
161
apiClients . a . object . new ( 'unixfs-dir' , ( err , res ) => {
167
162
expect ( err ) . to . not . exist
168
163
expect ( res ) . to . deep . equal ( {
169
- Hash : 'QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn' ,
170
- Links : null
164
+ Hash : 'QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn'
171
165
} )
172
166
done ( )
173
167
} )
@@ -226,8 +220,7 @@ describe('.object', () => {
226
220
return apiClients . a . object . links ( testObjectHash )
227
221
. then ( ( res ) => {
228
222
expect ( res ) . to . be . eql ( {
229
- Hash : 'QmPTkMuuL6PD8L2SwTwbcs1NPg14U8mRzerB1ZrrBrkSDD' ,
230
- Links : [ ]
223
+ Hash : 'QmPTkMuuL6PD8L2SwTwbcs1NPg14U8mRzerB1ZrrBrkSDD'
231
224
} )
232
225
} )
233
226
} )
@@ -236,8 +229,7 @@ describe('.object', () => {
236
229
return apiClients . a . object . new ( 'unixfs-dir' )
237
230
. then ( ( res ) => {
238
231
expect ( res ) . to . deep . equal ( {
239
- Hash : 'QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn' ,
240
- Links : null
232
+ Hash : 'QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn'
241
233
} )
242
234
} )
243
235
} )
0 commit comments