Skip to content

Commit c515454

Browse files
committed
Adding test for checking whether local stop is working or not
1 parent 1eaa5f4 commit c515454

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/local.js

+11
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,17 @@ describe('Local', function () {
210210
});
211211
});
212212

213+
it('should stop local', function (done) {
214+
this.timeout(MAX_TIMEOUT);
215+
bsLocal.start({ 'key': process.env.BROWSERSTACK_ACCESS_KEY}, function(){
216+
expect(bsLocal.isRunning()).to.equal(true);
217+
bsLocal.stop(function(){
218+
expect(bsLocal.isRunning()).to.equal(false);
219+
done();
220+
});
221+
});
222+
});
223+
213224
afterEach(function (done) {
214225
this.timeout(60000);
215226
bsLocal.stop(done);

0 commit comments

Comments
 (0)