Remove unsupported auto-launch setting on Linux

This commit is contained in:
Evan Hahn
2021-05-19 15:18:15 -05:00
committed by Scott Nonnenberg
parent 58294eed00
commit 8f0731d498
5 changed files with 37 additions and 8 deletions

View File

@@ -102,6 +102,24 @@ describe('Settings', () => {
});
});
describe('isAutoLaunchSupported', () => {
it('returns true on Windows', () => {
sandbox.stub(process, 'platform').value('win32');
sandbox.stub(os, 'release').returns('8.0.0');
assert.isTrue(Settings.isAutoLaunchSupported());
});
it('returns true on macOS', () => {
sandbox.stub(process, 'platform').value('darwin');
assert.isTrue(Settings.isAutoLaunchSupported());
});
it('returns false on Linux', () => {
sandbox.stub(process, 'platform').value('linux');
assert.isFalse(Settings.isAutoLaunchSupported());
});
});
describe('isHideMenuBarSupported', () => {
it('returns false on macOS', () => {
sandbox.stub(process, 'platform').value('darwin');