Skip to content

Commit

Permalink
test: fix mock
Browse files Browse the repository at this point in the history
  • Loading branch information
spkjp committed Jun 18, 2019
1 parent da6e474 commit 5a39c4d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions __tests__/integration/core-p2p/mocks/core-container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ jest.mock("@arkecosystem/core-container", () => {
return {
getStore: () => ({
getLastBlock: () => genesisBlock,
getLastBlocks: () => [genesisBlock],
getLastHeight: () => genesisBlock.data.height,
cacheTransactions: jest.fn().mockImplementation(txs => ({ notAdded: txs, added: [] })),
removeCachedTransactionIds: jest.fn().mockReturnValue(undefined),
Expand Down

0 comments on commit 5a39c4d

Please sign in to comment.