refactor: make accessibilitySupportEnabled a property on app (#17362)

* refactor: make accessibilitySupport a prop on app

* fix docs

* update spec
This commit is contained in:
Shelley Vohr 2019-04-04 19:49:04 -07:00 committed by GitHub
parent 11699d8611
commit 9c3cb55ef2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 56 additions and 36 deletions

View file

@ -634,9 +634,15 @@ describe('app module', () => {
})
})
describe('isAccessibilitySupportEnabled API', () => {
describe('accessibilitySupportEnabled property', () => {
if (process.platform === 'linux') return
it('returns whether the Chrome has accessibility APIs enabled', () => {
expect(app.isAccessibilitySupportEnabled()).to.be.a('boolean')
expect(app.accessibilitySupportEnabled).to.be.a('boolean')
//TODO(codebytere): remove when propertyification is complete
expect(app.isAccessibilitySupportEnabled).to.be.a('function')
expect(app.setAccessibilitySupportEnabled).to.be.a('function')
})
})