From 6c172319024f4dde53edd25718953045c982fbff Mon Sep 17 00:00:00 2001 From: Oleksii Kosynskyi Date: Thu, 12 Oct 2023 12:11:24 -0400 Subject: [PATCH] add unit tests --- .../web3-eth-accounts/test/unit/tx/registerNewTx.test.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/web3-eth-accounts/test/unit/tx/registerNewTx.test.ts b/packages/web3-eth-accounts/test/unit/tx/registerNewTx.test.ts index f694729af00..8b4da78a527 100644 --- a/packages/web3-eth-accounts/test/unit/tx/registerNewTx.test.ts +++ b/packages/web3-eth-accounts/test/unit/tx/registerNewTx.test.ts @@ -22,12 +22,10 @@ import { TxData, TxOptions } from '../../../src/tx'; describe('Register new TX', () => { it('validateCannotExceedMaxInteger()', () => { const TYPE = 20; - // @ts-ignore + // @ts-expect-error not implement all methods class SomeNewTxType extends BaseTransaction { - constructor(txData: TxData, opts: TxOptions = {}) { - super(txData, opts); - // @ts-ignore - this._type = 20; + public constructor(txData: TxData, opts: TxOptions = {}) { + super({ ...txData, type: TYPE }, opts); } public static fromTxData() { return 'new fromTxData';