refactor: set appLevelAppearance prop on systemPreferences (#18477)
* refactor: set appLevelAppearance prop on systemPreferences * ensure backwards compat is tested
This commit is contained in:
parent
ac35f41e8d
commit
1e3e5a6619
7 changed files with 46 additions and 10 deletions
|
@ -151,6 +151,20 @@ describe('systemPreferences module', () => {
|
|||
})
|
||||
})
|
||||
|
||||
describe('systemPreferences.appLevelAppearance', () => {
|
||||
before(function () {
|
||||
if (process.platform !== 'darwin') this.skip()
|
||||
})
|
||||
|
||||
it('has an appLevelAppearance property', () => {
|
||||
expect(systemPreferences).to.have.a.property('appLevelAppearance')
|
||||
|
||||
// TODO(codebytere): remove when propertyification is complete
|
||||
expect(systemPreferences.getAppLevelAppearance).to.be.a('function')
|
||||
expect(systemPreferences.setAppLevelAppearance).to.be.a('function')
|
||||
})
|
||||
})
|
||||
|
||||
describe('systemPreferences.setUserDefault(key, type, value)', () => {
|
||||
before(function () {
|
||||
if (process.platform !== 'darwin') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue