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

Commit

Permalink
Merge pull request #122 from maksimr/karma-mocha-109
Browse files Browse the repository at this point in the history
feat: Expose 'pending' status
  • Loading branch information
maksimr authored Nov 10, 2016
2 parents e39c323 + e847121 commit 6c63662
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 6c63662

Please sign in to comment.