Parcourir la source

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 il y a 13 heures
Parent
commit
8691df98e3
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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)