Skip to content

Commit

Permalink
Corrected worflow run issue
Browse files Browse the repository at this point in the history
  • Loading branch information
BitcoinZavior committed Jul 20, 2023
1 parent 9499ed6 commit 8443364
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
13 changes: 0 additions & 13 deletions __tests__/classes/Wallet.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 0 additions & 1 deletion __tests__/mockData.ts
Original file line number Diff line number Diff line change
@@ -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';

Expand Down

0 comments on commit 8443364

Please sign in to comment.