fix: Configured PTZ actions should overrule auto-detected actions (not merge with them) (#1558)

* fix: Configured PTZ actions should overrule auto-detected actions (not merge with them)

* Don't populate capabilities unless there is some basis
This commit is contained in:
Dermot Duffy
2024-09-21 18:32:40 -07:00
committed by GitHub
parent 7fd6bc6bee
commit c225a9aeab
6 changed files with 31 additions and 30 deletions
+6 -10
View File
@@ -163,11 +163,9 @@ describe('getPTZCapabilitiesFromCameraConfig', () => {
},
}),
),
)?.toEqual(
expect.objectContaining({
[capabilityName]: ['relative'],
}),
);
)?.toEqual({
[capabilityName]: ['relative'],
});
});
});
@@ -182,10 +180,8 @@ describe('getPTZCapabilitiesFromCameraConfig', () => {
},
}),
),
)?.toEqual(
expect.objectContaining({
presets: ['window'],
}),
);
)?.toEqual({
presets: ['window'],
});
});
});