Skip to content

Commit

Permalink
add unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
avkos committed Oct 12, 2023
1 parent 6c16bea commit 6c17231
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/web3-eth-accounts/test/unit/tx/registerNewTx.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<any> {
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';
Expand Down

0 comments on commit 6c17231

Please sign in to comment.