import * as sinonChai from 'sinon-chai' ; import * as chai from 'chai' ; import * as sinon from 'sinon' ; import { TestUtil } from '../TestUtil' ; import { FabricWalletRegistry , FileConfigurations } from 'ibm-blockchain-platform-common' ; import * as path from 'path' ; import { FabricWalletHelper } from '../../extension/fabric/FabricWalletHelper' ; chai . use ( sinonChai ) ; describe ( 'FabricWalletHelper' , ( ) => { const mySandBox = sinon . createSandbox ( ) ; before ( async ( ) => { await TestUtil . setupTests ( mySandBox ) ; await FabricWalletRegistry . instance ( ) . clear ( ) ; } ) ; describe ( 'getWalletPath' , ( ) => { it ( 'should get the wallet path' , ( ) => { const result = FabricWalletHelper . getWalletPath ( 'myWallet' ) ; result . should . equal ( path . join ( TestUtil . EXTENSION_TEST_DIR , 'v2' , FileConfigurations . FABRIC_WALLETS , 'myWallet' ) ) ; } ) ; } ) ; } ) ;