فهرست منبع

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 ساعت پیش
والد
کامیت
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', () => {
     describe('ptzControl', () => {
-      it('should call POST /camera/control/:cameraId/ptz/control', async () => {
+      it('should call POST /camera/ptz/control', async () => {
         const mockResponse = wrapResponse(null)
         const mockResponse = wrapResponse(null)
         vi.mocked(request.post).mockResolvedValue(mockResponse)
         vi.mocked(request.post).mockResolvedValue(mockResponse)