Skip to content
This repository has been archived by the owner on Dec 28, 2023. It is now read-only.

Commit

Permalink
feat: Expose 'pending' status
Browse files Browse the repository at this point in the history
closes #109
  • Loading branch information
maksimr committed Nov 8, 2016
1 parent b6af3eb commit e847121
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ var createMochaReporterConstructor = function (tc, pathname) {
suite: [],
success: test.state === 'passed',
skipped: skipped,
pending: skipped,
time: skipped ? 0 : test.duration,
log: test.$errors || [],
assertionErrors: test.$assertionErrors || [],
Expand Down
2 changes: 2 additions & 0 deletions test/src/adapter.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ describe('adapter mocha', function () {
expect(result.suite instanceof Array).to.eq(true)
expect(result.success).to.eq(true)
expect(result.skipped).to.to.eql(false)
expect(result.pending).to.to.eql(false)
expect(result.log instanceof Array).to.eq(true)
expect(result.assertionErrors instanceof Array).to.eq(true)
expect(result.startTime).to.be.at.least(beforeStartTime)
Expand Down Expand Up @@ -128,6 +129,7 @@ describe('adapter mocha', function () {
it('should report skipped result', function () {
sandbox.stub(tc, 'result', function (result) {
expect(result.skipped).to.eq(true)
expect(result.pending).to.eq(true)
})

var mockMochaResult = {
Expand Down

0 comments on commit e847121

Please sign in to comment.