Refactor: Update test files to improve mock structure and remove unused imports
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 6m51s
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 6m51s
This commit is contained in:
@@ -472,7 +472,7 @@ describe('Flyer DB Service', () => {
|
||||
|
||||
it('should rollback transaction on generic error', async () => {
|
||||
const dbError = new Error('DB Error');
|
||||
vi.mocked(withTransaction).mockImplementation(async (callback) => {
|
||||
vi.mocked(withTransaction).mockImplementation(async (_callback) => {
|
||||
throw dbError; // Simulate error during transaction
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user