From 8443364b31af814b1564fc456cd107c4cfdc9b80 Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Wed, 19 Jul 2023 20:16:26 -0400 Subject: [PATCH] Corrected worflow run issue --- __tests__/classes/Wallet.spec.ts | 13 ------------- __tests__/mockData.ts | 1 - 2 files changed, 14 deletions(-) diff --git a/__tests__/classes/Wallet.spec.ts b/__tests__/classes/Wallet.spec.ts index 672bfa1..49ccb84 100644 --- a/__tests__/classes/Wallet.spec.ts +++ b/__tests__/classes/Wallet.spec.ts @@ -169,19 +169,6 @@ describe('Wallet', () => { expect(mockBdkRnModule.sign).toHaveBeenCalledWith(wallet.id, base64PSBT, signOptions); }); - it('should sign a transaction', async () => { - const base64PSBT = 'base64PSBTA'; - const base64PSBTSigned = 'base64PSBTSigned'; - const partiallySignedTransaction = new PartiallySignedTransaction(base64PSBT); - const signOptions = new SignOptions(false, false, 100, false, false, false, false, false); - - mockBdkRnModule.sign.mockResolvedValueOnce(base64PSBTSigned); - let res = await wallet.sign(partiallySignedTransaction, signOptions); - expect(res).toBeInstanceOf(PartiallySignedTransaction); - expect(res.base64).toBe(base64PSBTSigned); - expect(mockBdkRnModule.sign).toHaveBeenCalledWith(wallet.id, base64PSBT, signOptions); - }); - it('should check if Wallet is mine or not', async () => { mockBdkRnModule.isMine.mockResolvedValueOnce(true); let res = await wallet.isMine(script); diff --git a/__tests__/mockData.ts b/__tests__/mockData.ts index a15cebe..9d36076 100644 --- a/__tests__/mockData.ts +++ b/__tests__/mockData.ts @@ -1,6 +1,5 @@ import { BlockTime, TransactionDetails } from '../src/classes/Bindings'; import { DescriptorSecretKey, Wallet } from '../src/index'; -import { createTxIn, createTxOut } from '../src/lib/utils'; import { Script } from '../src/classes/Script';