diff --git a/jest.config.js b/jest.config.js index 97742b53..40a4c63a 100644 --- a/jest.config.js +++ b/jest.config.js @@ -10,7 +10,7 @@ module.exports = { maxWorkers: 1, coverageThreshold: { "./src/coinbase/**": { - branches: 74, + branches: 75, functions: 85, statements: 85, lines: 85, diff --git a/src/tests/wallet_test.ts b/src/tests/wallet_test.ts index 299e17e6..ea3bbb37 100644 --- a/src/tests/wallet_test.ts +++ b/src/tests/wallet_test.ts @@ -1026,6 +1026,13 @@ describe("Wallet Class", () => { "Wallet ID must be provided", ); }); + it("should throw an error when seed is not provided", async () => { + const walletData = seedWallet.export(); + walletData.seed = ""; + await expect(async () => await Wallet.load(walletData)).rejects.toThrow( + "Seed must be provided", + ); + }); it("should throw an error when wallet data format is invalid", async () => { const invalidWalletData = { foo: "bar",