async testConnection() { return ( await this.getConnectionFromPool() ).execute('SELECT 1 FROM DUAL'); }
execute(params) { params.callback = this._callback; super.execute(params); }
describe('ITransactionLib (unit tests)', () => { describe('buildDraft', () => { it('should reject if called', () => expect( (new ITransactionLib({})).buildDraft(), ).rejects.toEqual(Error('Method "buildDraft" has not been implemented yet.'))) }) describe('sign', () => { it('should reject if called', () => expect( (new ITransactionLib({})).sign(), ).rejects.toEqual(Error('Method "sign" has not been implemented yet.'))) }) describe('execute', () => { it('should reject if called', () => expect( (new ITransactionLib({})).execute(), ).rejects.toEqual(Error('Method "execute" has not been implemented yet.'))) }) describe('getNonce', () => { it('should reject if called', () => expect( (new ITransactionLib({})).getNonce(), ).rejects.toEqual(Error('Method "getNonce" has not been implemented yet.'))) }) describe('getGasEstimation', () => { it('should reject if called', () => expect( (new ITransactionLib({})).getGasEstimation(), ).rejects.toEqual(Error('Method "getGasEstimation" has not been implemented yet.'))) }) })
public async execute(name: string, options: SchematicOption[]) { const schematic: string = this.validate(name); await super.execute(schematic, options); }
async execute (params = {}) { const result = await super.execute(params) return result }
public async execute(name: string, options: SchematicOption[]) { const schematic: string = this.validate(name); await super.execute(schematic, options); }
async execute (params = {}) { const result = await super.execute(params) return result }