Ver Fonte

fix(api): update PTZ control test to match new endpoint path

- Adjusted the test case for the PTZ control API endpoint in the camera unit tests to reflect the recent change in the endpoint path, ensuring accurate test coverage.
yb há 13 horas atrás
pai
commit
8691df98e3
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      tests/unit/api/camera.spec.ts

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

@@ -89,7 +89,7 @@ describe('Camera API', () => {
     })
 
     describe('ptzControl', () => {
-      it('should call POST /camera/control/:cameraId/ptz/control', async () => {
+      it('should call POST /camera/ptz/control', async () => {
         const mockResponse = wrapResponse(null)
         vi.mocked(request.post).mockResolvedValue(mockResponse)