feat: implement systemPreferences.getMediaAccessStatus() on Windows (#24275)

This commit is contained in:
Milan Burda 2020-06-25 18:47:50 +02:00 committed by GitHub
parent 5b80556da2
commit 9b4572de44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 75 additions and 6 deletions

View file

@ -269,7 +269,7 @@ describe('systemPreferences module', () => {
});
});
ifdescribe(process.platform === 'darwin')('systemPreferences.getMediaAccessStatus(mediaType)', () => {
ifdescribe(['win32', 'darwin'].includes(process.platform))('systemPreferences.getMediaAccessStatus(mediaType)', () => {
const statuses = ['not-determined', 'granted', 'denied', 'restricted', 'unknown'];
it('returns an access status for a camera access request', () => {