Skip to content

Commit 0344610

Browse files
correct only and verbose test
1 parent c70f1d8 commit 0344610

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/Local.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,10 @@ function Local(){
273273
args.push(this.forceProxyFlag);
274274
if(this.forceFlag)
275275
args.push(this.forceFlag);
276-
if(this.verboseFlag)
276+
if(this.verboseFlag){
277+
args.push('--verbose');
277278
args.push(this.verboseFlag);
279+
}
278280
for(var i in this.userArgs){
279281
args.push(this.userArgs[i]);
280282
}

test/local.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ describe('Local', function () {
179179
});
180180

181181
it('should set hosts', function (done) {
182-
bsLocal.start({ 'key': process.env.BROWSERSTACK_ACCESS_KEY, onlyCommand: 'localhost,8000,0'}, function(){
182+
bsLocal.start({ 'key': process.env.BROWSERSTACK_ACCESS_KEY, onlyCommand: true, 'only': 'localhost,8000,0'}, function(){
183183
expect(bsLocal.getBinaryArgs().indexOf('--only')).to.not.equal(-1);
184184
expect(bsLocal.getBinaryArgs().indexOf('localhost,8000,0')).to.not.equal(-1);
185185
done();

0 commit comments

Comments
 (0)