feat: add thermal states to powerMonitor (#37935)
* feat: add thermal states to powerMonitor * update docs
This commit is contained in:
parent
b2411e05a8
commit
ba835ddac1
5 changed files with 93 additions and 2 deletions
|
@ -178,6 +178,12 @@ describe('powerMonitor', () => {
|
|||
});
|
||||
});
|
||||
|
||||
describe('powerMonitor.getCurrentThermalState', () => {
|
||||
it('returns a valid state', () => {
|
||||
expect(powerMonitor.getCurrentThermalState()).to.be.oneOf(['unknown', 'nominal', 'fair', 'serious', 'critical']);
|
||||
});
|
||||
});
|
||||
|
||||
describe('powerMonitor.onBatteryPower', () => {
|
||||
it('returns a boolean', () => {
|
||||
expect(powerMonitor.onBatteryPower).to.be.a('boolean');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue