-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
test.js
42 lines (33 loc) · 1.05 KB
/
test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
var os = require('os');
var osType = os.type();
var setDefaultBrowser = require('./');
describe('OSX tests', () => {
describe('Detect OS Type', () => {
it('should return OSX', () => {
return osType === 'Darwin';
});
});
describe('Set Default Browser', () => {
it('should set chrome as default browser', () => {
return setDefaultBrowser('chrome');
});
it('should set chrome canary as default browser', () => {
return setDefaultBrowser('chromeCanary');
});
it('should set firefox as default browser', () => {
return setDefaultBrowser('firefox');
});
it('should set firefox developer edition as default browser', () => {
return setDefaultBrowser('firefoxDE');
});
it('should set safari as default browser', () => {
return setDefaultBrowser('safari');
});
it('should set edge as default browser', () => {
return setDefaultBrowser('edge');
});
it('should set edge canary as default browser', () => {
return setDefaultBrowser('edgeCanary');
});
});
});