Skip to content
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.

Commit

Permalink
chore: update deps (#313)
Browse files Browse the repository at this point in the history
Update deps
  • Loading branch information
achingbrain authored Apr 14, 2022
1 parent a63e9f6 commit 347a597
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 21 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,11 @@
"release": "aegir release"
},
"dependencies": {
"@libp2p/crypto": "^0.22.9",
"@libp2p/interfaces": "^1.3.20",
"@libp2p/crypto": "^0.22.10",
"@libp2p/interfaces": "^1.3.21",
"@libp2p/logger": "^1.1.3",
"@libp2p/peer-id": "^1.1.9",
"@libp2p/record": "^1.0.2",
"@libp2p/record": "^1.0.3",
"@libp2p/topology": "^1.1.7",
"@multiformats/multiaddr": "^10.1.5",
"any-signal": "^3.0.0",
Expand Down
12 changes: 3 additions & 9 deletions test/kad-dht.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,7 @@ describe('KadDHT', () => {
tdht.spawn({
// Stub verify record
validators: {
v: {
func: sinon.stub().rejects(error)
}
v: sinon.stub().rejects(error)
}
})
])
Expand Down Expand Up @@ -259,19 +257,15 @@ describe('KadDHT', () => {
const [dhtA, dhtB] = await Promise.all([
tdht.spawn({
validators: {
ipns: {
func: sinon.stub().resolves()
}
ipns: sinon.stub().resolves()
},
selectors: {
ipns: sinon.stub().returns(0)
}
}),
tdht.spawn({
validators: {
ipns: {
func: sinon.stub().resolves()
}
ipns: sinon.stub().resolves()
},
selectors: {
ipns: sinon.stub().returns(0)
Expand Down
4 changes: 1 addition & 3 deletions test/rpc/handlers/put-value.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@ describe('rpc - handlers - PutValue', () => {
new Date()
)
msg.record = record
validators.val = {
func: async () => {}
}
validators.val = async () => {}

const response = await handler.handle(sourcePeer, msg)
expect(response).to.deep.equal(msg)
Expand Down
8 changes: 2 additions & 6 deletions test/utils/test-dht.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,11 @@ export class TestDHT {

const opts: KadDHTInit = {
validators: {
v: {
async func () {
async v () {

}
},
v2: {
async func () {
async v2 () {

}
}
},
selectors: {
Expand Down

0 comments on commit 347a597

Please sign in to comment.