Skip to content

Commit

Permalink
Fix BitcoinDepositor tests in SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
nkuba committed Apr 9, 2024
1 parent 89feb84 commit c6acdce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sdk/test/lib/ethereum/tbtc-depositor.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe("BitcoinDepositor", () => {

const mockedContractInstance = {
tbtcVault: jest.fn().mockImplementation(() => vaultAddress.identifierHex),
initializeStake: jest.fn(),
initializeDeposit: jest.fn(),
}
let depositor: EthereumBitcoinDepositor
let depositorAddress: EthereumAddress
Expand Down Expand Up @@ -103,7 +103,7 @@ describe("BitcoinDepositor", () => {
let result: Hex

beforeAll(async () => {
mockedContractInstance.initializeStake.mockReturnValue({
mockedContractInstance.initializeDeposit.mockReturnValue({
hash: mockedTx.toPrefixedString(),
})

Expand Down Expand Up @@ -135,7 +135,7 @@ describe("BitcoinDepositor", () => {
)
})

it("should initialize stake request", () => {
it("should initialize deposit", () => {
const btcTxInfo = {
version: bitcoinFundingTransaction.version.toPrefixedString(),
inputVector: bitcoinFundingTransaction.inputs.toPrefixedString(),
Expand All @@ -154,7 +154,7 @@ describe("BitcoinDepositor", () => {
vault: `0x${vaultAddress.identifierHex}`,
}

expect(mockedContractInstance.initializeStake).toHaveBeenCalledWith(
expect(mockedContractInstance.initializeDeposit).toHaveBeenCalledWith(
btcTxInfo,
revealInfo,
`0x${depositOwner.identifierHex}`,
Expand Down

0 comments on commit c6acdce

Please sign in to comment.