blob: 37c75408dd05fc01946c5e1aebb354adc5e55036 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
const command = require('../command');
describe('mac Os delete connection command', () => {
it('should generate basic command without iface', () => {
const config = { iface: null };
const accessPoint = { ssid: 'ssid' };
expect(command(config, accessPoint)).toEqual({
cmd: '/usr/sbin/networksetup',
args: ['-removepreferredwirelessnetwork', 'en0', 'ssid']
});
});
it('should generate basic command without iface', () => {
const config = { iface: 'en2' };
const accessPoint = { ssid: 'ssid' };
expect(command(config, accessPoint)).toEqual({
cmd: '/usr/sbin/networksetup',
args: ['-removepreferredwirelessnetwork', 'en2', 'ssid']
});
});
});
|