mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-27 20:03:25 +01:00
Remove unsupported auto-launch setting on Linux
This commit is contained in:
committed by
Scott Nonnenberg
parent
58294eed00
commit
8f0731d498
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user