Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

Commit

Permalink
chore: fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
j0tunn committed Feb 9, 2017
1 parent 0ec6d69 commit 715024e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion doc/events.md
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions test/unit/runner/index.js
Expand Up @@ -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');
Expand All @@ -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 = [
Expand All @@ -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');

Expand All @@ -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');
Expand Down

0 comments on commit 715024e

Please sign in to comment.