@@ -2,7 +2,7 @@ import * as assert from 'assert'
2
2
import {
3
3
ContactBundleV1 ,
4
4
ContactBundleV2 ,
5
- DecodeContactBundle ,
5
+ decodeContactBundle ,
6
6
} from '../src/ContactBundle'
7
7
import {
8
8
PrivateKeyBundleV1 ,
@@ -18,13 +18,13 @@ describe('ContactBundles', function () {
18
18
const priv = await PrivateKeyBundleV1 . generate ( )
19
19
const pub = priv . getPublicKeyBundle ( )
20
20
let bytes = pub . toBytes ( )
21
- const cb = DecodeContactBundle ( bytes )
21
+ const cb = decodeContactBundle ( bytes )
22
22
expect ( cb . keyBundle ) . toBeInstanceOf ( PublicKeyBundle )
23
23
assert . ok ( pub . equals ( cb . keyBundle as PublicKeyBundle ) )
24
24
25
25
const cb1 = new ContactBundleV1 ( { keyBundle : priv . getPublicKeyBundle ( ) } )
26
26
bytes = cb1 . toBytes ( )
27
- const cb2 = DecodeContactBundle ( bytes )
27
+ const cb2 = decodeContactBundle ( bytes )
28
28
expect ( cb2 . keyBundle ) . toBeInstanceOf ( PublicKeyBundle )
29
29
assert . ok ( pub . equals ( cb2 . keyBundle as PublicKeyBundle ) )
30
30
@@ -37,7 +37,7 @@ describe('ContactBundles', function () {
37
37
const pub = priv . getPublicKeyBundle ( )
38
38
const cb1 = new ContactBundleV2 ( { keyBundle : priv . getPublicKeyBundle ( ) } )
39
39
let bytes = cb1 . toBytes ( )
40
- const cb2 = DecodeContactBundle ( bytes )
40
+ const cb2 = decodeContactBundle ( bytes )
41
41
expect ( cb2 . keyBundle ) . toBeInstanceOf ( SignedPublicKeyBundle )
42
42
assert . ok ( pub . equals ( cb2 . keyBundle as SignedPublicKeyBundle ) )
43
43
0 commit comments