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

Commit 211e2c5

Browse files
richardschneiderdaviddias
authored andcommitted
fix: key.rm test (#185)
1 parent cb05aaa commit 211e2c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/key.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ module.exports = (common) => {
119119
})
120120

121121
it('removes a key', function (done) {
122-
ipfs.key.rm(key.name, (err, res) => {
122+
ipfs.key.rm(key.Name, (err, res) => {
123123
expect(err).to.not.exist()
124124
expect(res).to.exist()
125125
expect(res).to.have.property('Keys')
@@ -133,7 +133,7 @@ module.exports = (common) => {
133133
it('does not contain the removed name', (done) => {
134134
ipfs.key.list((err, res) => {
135135
expect(err).to.not.exist()
136-
const found = res.Keys.filter(k => k.Name === key.name)
136+
const found = res.Keys.filter(k => k.Name === key.Name)
137137
expect(found).to.have.length(0)
138138
done()
139139
})

0 commit comments

Comments
 (0)