chore: fix specs for getFormData and convertToCsv

This commit is contained in:
2025-03-03 00:19:50 +05:00
parent 3713a226a4
commit 7bdd826418
2 changed files with 7 additions and 3 deletions
+2 -2
View File
@@ -10,8 +10,8 @@ describe('getFormData', () => {
})
it('should return FormData if environment is not Node', () => {
const formDataMock = () => {}
;(global as any).FormData = formDataMock
// Ensure FormData is globally available
;(global as any).FormData = class FormData {}
jest.spyOn(isNodeModule, 'isNode').mockImplementation(() => false)