Skip to content

Commit

Permalink
chore(test): extend test mock
Browse files Browse the repository at this point in the history
  • Loading branch information
vasild committed Aug 15, 2019
1 parent 549a516 commit 6200839
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions __tests__/unit/core-blockchain/mocks/database.ts
Original file line number Diff line number Diff line change
@@ -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,
},

Expand Down

0 comments on commit 6200839

Please sign in to comment.