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

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dignifiedquire committed May 6, 2016
1 parent cb22abe commit a3fe500
Showing 1 changed file with 13 additions and 16 deletions.
29 changes: 13 additions & 16 deletions test/api/bitswap.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,13 @@ describe('.bitswap', () => {
it('.stat', (done) => {
apiClients.a.bitswap.stat((err, res) => {
expect(err).to.not.exist
expect(res).to.have.to.be.eql({
BlocksReceived: 0,
DupBlksReceived: 0,
DupDataReceived: 0,
Peers: null,
ProvideBufLen: 0,
Wantlist: null
})
expect(res).to.have.property('BlocksReceived')
expect(res).to.have.property('DupBlksReceived')
expect(res).to.have.property('DupDataReceived')
expect(res).to.have.property('Peers')
expect(res).to.have.property('ProvideBufLen')
expect(res).to.have.property('Wantlist')

done()
})
})
Expand All @@ -51,14 +50,12 @@ describe('.bitswap', () => {
it('.stat', () => {
return apiClients.a.bitswap.stat()
.then((res) => {
expect(res).to.have.to.be.eql({
BlocksReceived: 0,
DupBlksReceived: 0,
DupDataReceived: 0,
Peers: null,
ProvideBufLen: 0,
Wantlist: null
})
expect(res).to.have.property('BlocksReceived')
expect(res).to.have.property('DupBlksReceived')
expect(res).to.have.property('DupDataReceived')
expect(res).to.have.property('Peers')
expect(res).to.have.property('ProvideBufLen')
expect(res).to.have.property('Wantlist')
})
})

Expand Down

0 comments on commit a3fe500

Please sign in to comment.