Skip to content

Commit

Permalink
Merge pull request #35 from fijijavis/bug_fix
Browse files Browse the repository at this point in the history
Bug fix
  • Loading branch information
fijijavis authored Jul 23, 2019
2 parents 4a97e1f + 7be4487 commit beca9b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wdio-json-reporter",
"version": "1.3.0",
"version": "1.3.1",
"description": "A WebdriverIO plugin. Report results in json format.",
"main": "./src/index.js",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion src/mapHooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = function (suiteHooks) {
hookResult.title = hook.title
hookResult.associatedSuite = hook.parent
hookResult.associatedTest = hook.currentTest
hookResult.state = hook.errors.length ? hook.state : 'passed'
hookResult.state = hook.errors && hook.errors.length ? hook.state : 'passed'

if (hook.error) {
if (hook.error.type) {
Expand Down

0 comments on commit beca9b9

Please sign in to comment.