Skip to content

Commit

Permalink
test: reporter plain
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitriy-kiselyov committed Mar 1, 2018
1 parent 3623b00 commit ead8410
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/lib/reporter/plain.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,24 @@ describe('Plain reporter', () => {

afterEach(() => sandbox.restore());

describe('success tests report', () => {
it('should log correct info about test', () => {
test = mkTestStub_({
fullTitle: () => 'some test title',
title: 'test title',
browserId: 'bro',
duration: '100'
});

emit(RunnerEvents.TEST_PASS, test);

assert.match(
getDeserializedResult(stdout),
/some test title \[bro\] - 100ms/
);
});
});

const testStates = {
RETRY: 'retried',
TEST_FAIL: 'failed'
Expand Down

0 comments on commit ead8410

Please sign in to comment.