This repository was archived by the owner on Jul 21, 2023. It is now read-only.
File tree 2 files changed +9
-10
lines changed
2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -10,23 +10,21 @@ const mockUpgrader = {
10
10
}
11
11
let listener
12
12
13
- async function boot ( ) {
13
+ async function before ( ) {
14
14
const ws = new WS ( { upgrader : mockUpgrader } )
15
15
const ma = multiaddr ( '/ip4/127.0.0.1/tcp/9095/ws' )
16
16
listener = ws . createListener ( conn => pipe ( conn , conn ) )
17
17
await listener . listen ( ma )
18
18
listener . on ( 'error' , console . error )
19
19
}
20
20
21
- function shutdown ( ) {
21
+ function after ( ) {
22
22
return listener . close ( )
23
23
}
24
24
25
25
module . exports = {
26
- hooks : {
27
- browser : {
28
- pre : boot ,
29
- post : shutdown
30
- }
26
+ test : {
27
+ before,
28
+ after
31
29
}
32
30
}
Original file line number Diff line number Diff line change 43
43
"debug" : " ^4.2.0" ,
44
44
"err-code" : " ^3.0.1" ,
45
45
"ipfs-utils" : " ^6.0.1" ,
46
- "it-ws" : " ^3 .0.2 " ,
46
+ "it-ws" : " ^4 .0.0 " ,
47
47
"libp2p-utils" : " ^0.2.1" ,
48
48
"mafmt" : " ^8.0.1" ,
49
49
"multiaddr" : " ^8.1.1" ,
53
53
},
54
54
"devDependencies" : {
55
55
"abort-controller" : " ^3.0.0" ,
56
- "aegir" : " ^30.3 .0" ,
56
+ "aegir" : " ^32.2 .0" ,
57
57
"bl" : " ^4.0.0" ,
58
58
"is-loopback-addr" : " ^1.0.1" ,
59
59
"it-goodbye" : " ^2.0.1" ,
60
60
"it-pipe" : " ^1.0.1" ,
61
61
"libp2p-interfaces" : " ^0.8.3" ,
62
62
"streaming-iterables" : " ^5.0.2" ,
63
- "uint8arrays" : " ^2.1.2"
63
+ "uint8arrays" : " ^2.1.2" ,
64
+ "util" : " ^0.12.3"
64
65
},
65
66
"contributors" : [
66
67
" David Dias <daviddias.p@gmail.com>" ,
You can’t perform that action at this time.
0 commit comments