Prechádzať zdrojové kódy

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 13 hodín pred
rodič
commit
8691df98e3
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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)