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

Commit

Permalink
chore: use topology interface
Browse files Browse the repository at this point in the history
  • Loading branch information
vasco-santos committed Nov 7, 2019
1 parent f84e744 commit 1677897
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,13 @@ exports.createMockRegistrar = (registrarRecord) => ({
handler
}
},
register: ({ multicodecs, handlers }) => {
register: ({ multicodecs, _onConnect, _onDisconnect }) => {
const rec = registrarRecord[multicodecs[0]] || {}

registrarRecord[multicodecs[0]] = {
...rec,
...handlers
onConnect: _onConnect,
onDisconnect: _onDisconnect
}

return multicodecs[0]
Expand Down

0 comments on commit 1677897

Please sign in to comment.