Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdan-rosianu committed Dec 17, 2024
1 parent 2bb2590 commit 858360f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/test/unit/services/pool.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { PoolFilter } from "src/endpoints/pool/entities/pool.filter";
import { PoolService } from "src/endpoints/pool/pool.service";
import { TransactionType } from "src/endpoints/transactions/entities/transaction.type";
import { ProtocolService } from "../../../common/protocol/protocol.service";
import { TransactionActionService } from "../../../endpoints/transactions/transaction-action/transaction.action.service";

describe('PoolService', () => {
let service: PoolService;
Expand Down Expand Up @@ -41,6 +42,12 @@ describe('PoolService', () => {
isTransactionPoolEnabled: jest.fn().mockResolvedValue(true),
},
},
{
provide: TransactionActionService,
useValue: {
getTransactionMetadata: jest.fn(),
},
},
],
}).compile();

Expand Down

0 comments on commit 858360f

Please sign in to comment.