diff --git a/doc/events.md b/doc/events.md index 798ab1ad6..b2d123f48 100644 --- a/doc/events.md +++ b/doc/events.md @@ -17,7 +17,7 @@ * `STOP_BROWSER` - emitted right before browser session end. Emitted with [browser instance](../lib/browser/new-browser.js). If handler returns a promise quit will be performed only after the promise is resolved. -* `BEGIN` - runner event. Emitted on runner start with 1 argment `data`: +* `BEGIN` - runner event. Emitted on runner start with 1 argument `data`: * `data.suiteCollection` - suite collection which will be run * `data.config` - gemini config * `data.totalStates` - number of states in collection diff --git a/test/unit/runner/index.js b/test/unit/runner/index.js index 091665218..e65bce2bd 100644 --- a/test/unit/runner/index.js +++ b/test/unit/runner/index.js @@ -133,7 +133,7 @@ describe('runner', () => { return run(runner).then(() => assert.calledOnce(onBegin)); }); - it('should suite collection of states when emitting "BEGIN" event', () => { + it('should pass suite collection on "BEGIN" event', () => { const runner = createRunner(); const suiteCollection = {allSuites: sinon.stub()}; const onBegin = sinon.spy().named('onBegin'); @@ -144,7 +144,7 @@ describe('runner', () => { .then(() => assert.calledWithMatch(onBegin, {suiteCollection})); }); - it('should pass total number of states when emitting "BEGIN" event', () => { + it('should pass total number of states on "BEGIN" event', () => { const runner = createRunner(); const suiteCollection = {allSuites: sinon.stub()}; const suites = [ @@ -161,7 +161,7 @@ describe('runner', () => { return run(runner, suiteCollection).then(() => assert.calledWithMatch(onBegin, {totalStates: 3})); }); - it('should pass all browser ids when emitting "BEGIN" event', () => { + it('should pass all browser ids on "BEGIN" event', () => { const runner = createRunner(); const onBegin = sinon.spy().named('onBegin'); @@ -172,7 +172,7 @@ describe('runner', () => { return run(runner).then(() => assert.calledWithMatch(onBegin, {browserIds: ['bro1', 'bro2']})); }); - it('should pass config when emitting "BEGIN" event', () => { + it('should pass config on "BEGIN" event', () => { const runner = createRunner(); const config = runner.config; const onBegin = sinon.spy().named('onBegin');