Skip to content

Commit 7c43b62

Browse files
committed
test: fix import
1 parent f987b0c commit 7c43b62

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

tests/unittests/handleUpdateClientPaymentStatus.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { ChronikBlockchainClient } from '../../services/chronikService'
44

55
process.env.WS_AUTH_KEY = 'test-auth-key'
66

7-
// Mock the transactionService functions
8-
jest.mock('../../services/transactionService', () => ({
7+
// Mock the clientPayment functions
8+
jest.mock('../../services/clientPaymentService', () => ({
99
getClientPayment: jest.fn(),
1010
updateClientPaymentStatus: jest.fn()
1111
}))
@@ -71,9 +71,9 @@ describe('handleUpdateClientPaymentStatus tests', () => {
7171

7272
// Get the mocked functions
7373
// eslint-disable-next-line @typescript-eslint/no-var-requires
74-
const transactionService = require('../../services/transactionService')
75-
mockGetClientPayment = transactionService.getClientPayment
76-
mockUpdateClientPaymentStatus = transactionService.updateClientPaymentStatus
74+
const clientPaymentService = require('../../services/clientPaymentService')
75+
mockGetClientPayment = clientPaymentService.getClientPayment
76+
mockUpdateClientPaymentStatus = clientPaymentService.updateClientPaymentStatus
7777

7878
// Clear all mocks before each test
7979
jest.clearAllMocks()

0 commit comments

Comments
 (0)