'use strict' ; import * as chai from 'chai' ; import * as sinonChai from 'sinon-chai' ; import * as chaiAsPromised from 'chai-as-promised' ; chai . use ( sinonChai ) ; chai . use ( chaiAsPromised ) ; module . exports = function ( ) : any { /**
     * Given
     */ this . Given ( /the contract has been deployed on channel '(.*?)'/ , this . timeout , async ( channel ) => { await this . smartContractHelper . deploySmartContract ( channel , this . contractDefinitionName , this . contractDefinitionVersion , this . packageRegistryEntry ) ; } ) ; /**
     * When
     */ this . When ( /^I deploy the contract on channel '(.*?)' with sequence '(.*?)'( with private data)?$/ , this . timeout , async ( channel , sequence , privateDataString ) => { let privateData = false ; if ( privateDataString ) { privateData = true ; } await this . smartContractHelper . deploySmartContract ( channel , this . contractDefinitionName , this . contractDefinitionVersion , this . packageRegistryEntry , sequence , privateData , true ) ; } ) ; } ;