Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

Commit

Permalink
fix: key.rm test (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
richardschneider authored and daviddias committed Dec 18, 2017
1 parent cb05aaa commit 211e2c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/key.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ module.exports = (common) => {
})

it('removes a key', function (done) {
ipfs.key.rm(key.name, (err, res) => {
ipfs.key.rm(key.Name, (err, res) => {
expect(err).to.not.exist()
expect(res).to.exist()
expect(res).to.have.property('Keys')
Expand All @@ -133,7 +133,7 @@ module.exports = (common) => {
it('does not contain the removed name', (done) => {
ipfs.key.list((err, res) => {
expect(err).to.not.exist()
const found = res.Keys.filter(k => k.Name === key.name)
const found = res.Keys.filter(k => k.Name === key.Name)
expect(found).to.have.length(0)
done()
})
Expand Down

0 comments on commit 211e2c5

Please sign in to comment.