Makelore 2.0 initial clean snapshot
This commit is contained in:
13
tests/unit/mac-media-entitlements.test.ts
Normal file
13
tests/unit/mac-media-entitlements.test.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { readFileSync } from 'node:fs';
|
||||
import { join } from 'node:path';
|
||||
import { describe, expect, it } from 'vitest';
|
||||
|
||||
describe('macOS media entitlements', () => {
|
||||
it('allows packaged NianCode builds to request microphone input', () => {
|
||||
const entitlements = readFileSync(join(process.cwd(), 'entitlements.mac.plist'), 'utf8');
|
||||
|
||||
expect(entitlements).toMatch(
|
||||
/<key>com\.apple\.security\.device\.audio-input<\/key>\s*<true\/>/,
|
||||
);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user