Parcourir la source

fix(machine): update API call expectation in unit test

- Modified the expectation in the `listMachines` unit test to include an undefined parameter for the API call, ensuring accurate test validation for the updated API behavior.
yb il y a 2 semaines
Parent
commit
3045622043
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      tests/unit/api/machine.spec.ts

+ 1 - 1
tests/unit/api/machine.spec.ts

@@ -20,7 +20,7 @@ describe('Machine API', () => {
 
       const result = await listMachines()
 
-      expect(request.get).toHaveBeenCalledWith('/admin/machines/list')
+      expect(request.get).toHaveBeenCalledWith('/admin/machines/list', undefined)
       expect(result.success).toBe(true)
       expect(result.data.list).toHaveLength(mockMachines.length)
       expect(result.data.list[0].machineId).toBe(mockMachines[0].machineId)