feat: add app.isHardwareAccelerationEnabled() (#47614)

* feat: add app.isHardwareAccelerationEnabled()

* chore: address review feedback
This commit is contained in:
Shelley Vohr
2025-10-27 20:03:08 +01:00
committed by GitHub
parent 8f6ecd816b
commit b389377c63
4 changed files with 27 additions and 0 deletions

View File

@@ -149,6 +149,12 @@ describe('app module', () => {
});
});
describe('app.isHardwareAccelerationEnabled()', () => {
it('should be a boolean', () => {
expect(app.isHardwareAccelerationEnabled()).to.be.a('boolean');
});
});
describe('app.isPackaged', () => {
it('should be false during tests', () => {
expect(app.isPackaged).to.equal(false);