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

feat: Expose 'pending' status #122

Merged
merged 1 commit into from Nov 10, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions src/adapter.js
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
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