فهرست منبع

fix(api): correct PTZ control endpoint path in camera tests

- Updated the expected API endpoint in the camera unit tests to reflect the recent changes in the PTZ control path, ensuring accurate test assertions.
yb 18 ساعت پیش
والد
کامیت
06990a06a2
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      tests/unit/api/camera.spec.ts

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

@@ -96,7 +96,7 @@ describe('Camera API', () => {
         const data: PTZControlRequest = { cameraId: 'cam-001', action: 'up', speed: 50 }
         const data: PTZControlRequest = { cameraId: 'cam-001', action: 'up', speed: 50 }
         await ptzControl(data)
         await ptzControl(data)
 
 
-        expect(request.post).toHaveBeenCalledWith('/camera/control/cam-001/ptz/control', data)
+        expect(request.post).toHaveBeenCalledWith('/camera/ptz/control', data)
       })
       })
     })
     })
   })
   })