Skip to content

Commit 68f29a1

Browse files
Arihant JainArihant Jain
authored andcommitted
Remove debugging statement and split protocol test
1 parent 488408b commit 68f29a1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/commandLine.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ var CommandLineManager = {
123123
if (host.match(constants.PROTOCOL_REGEX)) {
124124
host = host.replace(constants.PROTOCOL_REGEX, '');
125125
}
126-
console.log(host);
127126
RdGlobalConfig.proxy = RdGlobalConfig.proxy || {};
128127
RdGlobalConfig.proxy.host = host;
129128
argv.splice(index, 2);

test/commandLine.test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,14 @@ describe('CommandLineManager', function () {
3838
expect(RdGlobalConfig.proxy.port).to.eql(9687);
3939
});
4040

41-
it('remove any protocal part from proxy-host', function () {
41+
it('remove any protocol part from proxy-host', function () {
4242
sinon.stub(console, 'log');
4343
argv = argv.concat(['--proxy-host', 'http://host']);
4444
CommandLineManager.processArgs(argv);
4545
expect(RdGlobalConfig.proxy.host).to.eql('host');
46+
});
4647

48+
it('remove any prefix slashes from proxy-host', function () {
4749
argv = argv.concat(['--proxy-host', '//host']);
4850
CommandLineManager.processArgs(argv);
4951
console.log.restore();

0 commit comments

Comments
 (0)