瀏覽代碼

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 11 小時之前
父節點
當前提交
8691df98e3
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)