This repository was archived by the owner on Feb 26, 2021. It is now read-only.
File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 33
33
"bugs" : " https://github.com/libp2p/js-peer-info/issues" ,
34
34
"homepage" : " https://github.com/libp2p/js-peer-info" ,
35
35
"devDependencies" : {
36
- "aegir" : " ^18.2.2 " ,
36
+ "aegir" : " ^19.0.5 " ,
37
37
"buffer-loader" : " 0.1.0" ,
38
- "bundlesize" : " ~0.17 .0" ,
38
+ "bundlesize" : " ~0.18 .0" ,
39
39
"chai" : " ^4.2.0" ,
40
40
"dirty-chai" : " ^2.0.1"
41
41
},
42
42
"dependencies" : {
43
43
"mafmt" : " ^6.0.7" ,
44
44
"multiaddr" : " ^6.0.6" ,
45
- "peer-id" : " ~0.12.2 " ,
45
+ "peer-id" : " libp2p/js-peer-id#feat/async-await " ,
46
46
"unique-by" : " ^1.0.0"
47
47
},
48
48
"contributors" : [
Original file line number Diff line number Diff line change @@ -15,12 +15,12 @@ describe('peer-info', () => {
15
15
let pi
16
16
17
17
beforeEach ( async ( ) => {
18
- const id = await Id . create ( { bits : 512 } )
18
+ const id = await Id . create ( { bits : 512 } )
19
19
pi = new Info ( id )
20
20
} )
21
21
22
22
it ( 'create with Id class' , async ( ) => {
23
- const id = await Id . create ( { bits : 512 } )
23
+ const id = await Id . create ( { bits : 512 } )
24
24
const pi = new Info ( id )
25
25
const pi2 = new Info ( id )
26
26
expect ( pi . id ) . to . exist ( )
@@ -53,7 +53,7 @@ describe('peer-info', () => {
53
53
} )
54
54
55
55
it ( '.create with existing id' , async ( ) => {
56
- const id = await Id . create ( { bits : 512 } )
56
+ const id = await Id . create ( { bits : 512 } )
57
57
const info = await Info . create ( id )
58
58
expect ( info . id ) . to . exist ( )
59
59
expect ( info . id . isEqual ( id ) ) . to . equal ( true )
You can’t perform that action at this time.
0 commit comments