Disable audio notifications on Windows 7 and lower
This commit is contained in:
parent
a102016ed8
commit
ecf23b6b2e
2 changed files with 18 additions and 1 deletions
|
@ -23,6 +23,21 @@ describe('Settings', () => {
|
|||
});
|
||||
|
||||
context('on Windows', () => {
|
||||
context('version 7', () => {
|
||||
beforeEach(() => {
|
||||
sandbox.stub(process, 'platform').value('win32');
|
||||
sandbox.stub(os, 'release').returns('7.0.0');
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
sandbox.restore();
|
||||
});
|
||||
|
||||
it('should return false', () => {
|
||||
assert.isFalse(Settings.isAudioNotificationSupported());
|
||||
});
|
||||
});
|
||||
|
||||
context('version 8+', () => {
|
||||
beforeEach(() => {
|
||||
sandbox.stub(process, 'platform').value('win32');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue