14 lines
463 B
TypeScript
14 lines
463 B
TypeScript
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\/>/,
|
|
);
|
|
});
|
|
});
|