diff --git a/test/key.spec.js b/test/key.spec.js index 9942372b08..f3bbaf7ef4 100644 --- a/test/key.spec.js +++ b/test/key.spec.js @@ -51,7 +51,7 @@ describe('.key', function () { ipfs.key.list((err, res) => { expect(err).to.not.exist() expect(res).to.exist() - expect(res.Keys.length).to.equal(3) + expect(res.length).to.equal(3) done() }) }) @@ -77,7 +77,7 @@ describe('.key', function () { it('4 keys to show up + self', () => { return ipfs.key.list().then((res) => { expect(res).to.exist() - expect(res.Keys.length).to.equal(5) + expect(res.length).to.equal(5) }) }) }) diff --git a/test/name.spec.js b/test/name.spec.js index 37af501830..4e2330e51f 100644 --- a/test/name.spec.js +++ b/test/name.spec.js @@ -76,12 +76,10 @@ describe('.name', function () { }) it('.name.resolve', (done) => { - ipfs.name.resolve(name.Name, (err, res) => { + ipfs.name.resolve(name.name, (err, res) => { expect(err).to.not.exist() expect(res).to.exist() - expect(res).to.be.eql({ - Path: name.Value - }) + expect(res).to.be.eql(name.value) done() }) }) @@ -99,12 +97,10 @@ describe('.name', function () { }) it('.name.resolve', () => { - return ipfs.name.resolve(name.Name) + return ipfs.name.resolve(name.name) .then((res) => { expect(res).to.exist() - expect(res).to.be.eql({ - Path: name.Value - }) + expect(res).to.be.eql(name.value) }) }) })