Skip to content

Commit 8203071

Browse files
committed
fix: account for host-dependent macOS audio capability
1 parent 6df0f49 commit 8203071

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

‎test/integration/smoke-macos-coverage.test.ts‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,17 @@ test('macOS non-live evidence owners name existing executable repository evidenc
106106

107107
test('macOS capability-denial rows match the owning capability matrix', () => {
108108
const deniedByCapabilities = Object.values(PUBLIC_COMMANDS)
109-
.filter((command) => !isCommandSupportedOnDevice(command, MACOS_DEVICE))
109+
.filter((command) => {
110+
if (command === PUBLIC_COMMANDS.audio) {
111+
assert.equal(
112+
isCommandSupportedOnDevice(command, MACOS_DEVICE),
113+
process.platform === 'darwin',
114+
'macOS audio admission follows host ScreenCaptureKit availability',
115+
);
116+
return false;
117+
}
118+
return !isCommandSupportedOnDevice(command, MACOS_DEVICE);
119+
})
110120
.sort();
111121
const deniedByManifest = Object.entries(MACOS_PLATFORM_COVERAGE)
112122
.filter(([, entry]) => entry.level === 'capability-denial')

0 commit comments

Comments
 (0)