@@ -144,19 +144,6 @@ module.exports = (repo) => {
144144 expect ( mh . name ) . to . equal ( 'sha3-512' )
145145 } )
146146
147- // TODO vmx 2018-11-29: Change this test to use the new `get()`
148- // it('resolver.get with empty path', (done) => {
149- // resolver.get(cid1, '/', (err, result) => {
150- // expect(err).to.not.exist()
151- //
152- // dagPB.util.cid(result.value, (err, cid) => {
153- // expect(err).to.not.exist()
154- // expect(cid).to.eql(cid1)
155- // done()
156- // })
157- // })
158- // })
159-
160147 it ( 'resolves()s a value within 1st node scope' , async ( ) => {
161148 const result = resolver . resolve ( cid1 , 'Data' )
162149 const node = await result . first ( )
@@ -202,16 +189,6 @@ module.exports = (repo) => {
202189 expect ( node ) . to . deep . equal ( node1 )
203190 } )
204191
205- // TODO vmx 2018-11-29: Think about if every returned node should contain
206- // a `cid` field or not
207- // it('resolver.get value within nested scope (1 level) returns cid of node traversed to', (done) => {
208- // resolver.get(cid2, 'Links/0/Hash/Data', (err, result) => {
209- // expect(err).to.not.exist()
210- // expect(result.cid).to.deep.equal(cid1)
211- // done()
212- // })
213- // })
214-
215192 it ( 'resolver.remove' , async ( ) => {
216193 // TODO vmx 2018-12-12: The same repo is used for all tests, there
217194 // seems to be some race condition with inserting and removing items.
0 commit comments