@@ -4,6 +4,7 @@ import indy from 'indy-sdk';
4
4
import { DidInfo } from '../wallet/Wallet' ;
5
5
import { DID_IDENTIFIER_REGEX , VERKEY_REGEX , isFullVerkey , isAbbreviatedVerkey } from '../utils/did' ;
6
6
import { InitConfig } from '../types' ;
7
+ import logger from '../logger' ;
7
8
8
9
const genesisPath = process . env . GENESIS_TXN_PATH
9
10
? path . resolve ( process . env . GENESIS_TXN_PATH )
@@ -34,7 +35,7 @@ describe('ledger', () => {
34
35
35
36
test ( `initialization of agent's public DID` , async ( ) => {
36
37
faberAgentPublicDid = faberAgent . getPublicDid ( ) ;
37
- console . log ( 'faberAgentPublicDid' , faberAgentPublicDid ) ;
38
+ logger . logJson ( 'faberAgentPublicDid' , faberAgentPublicDid ! ) ;
38
39
39
40
expect ( faberAgentPublicDid ) . toEqual (
40
41
expect . objectContaining ( {
@@ -130,12 +131,12 @@ describe('ledger', () => {
130
131
131
132
class DummyInboundTransporter implements InboundTransporter {
132
133
public start ( ) {
133
- console . log ( 'Starting agent...' ) ;
134
+ logger . log ( 'Starting agent...' ) ;
134
135
}
135
136
}
136
137
137
138
class DummyOutboundTransporter implements OutboundTransporter {
138
139
public async sendMessage ( ) {
139
- console . log ( 'Sending message...' ) ;
140
+ logger . log ( 'Sending message...' ) ;
140
141
}
141
142
}
0 commit comments