From 620083983eeee826f464bf8d4139a23a18fa3023 Mon Sep 17 00:00:00 2001 From: Vasil Dimov Date: Thu, 15 Aug 2019 14:07:07 +0300 Subject: [PATCH] chore(test): extend test mock --- __tests__/unit/core-blockchain/mocks/database.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/__tests__/unit/core-blockchain/mocks/database.ts b/__tests__/unit/core-blockchain/mocks/database.ts index f9db87364c..847ff3d9cd 100644 --- a/__tests__/unit/core-blockchain/mocks/database.ts +++ b/__tests__/unit/core-blockchain/mocks/database.ts @@ -1,8 +1,11 @@ +import { Utils } from "@arkecosystem/crypto"; + export const database = { restoredDatabaseIntegrity: true, walletManager: { findByPublicKey: pubKey => ({ getAttribute: () => "username" }), + getNonce: (senderPublicKey: string) => Utils.BigNumber.ZERO, revertBlock: () => undefined, },