Skip to content
This repository has been archived by the owner on Mar 9, 2019. It is now read-only.

Commit

Permalink
support string type assertions (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
bartveneman authored Dec 23, 2018
1 parent e005285 commit c65f55a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions lib/test-runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ module.exports = (config, stats) => {
test.end()
return test.passing()
}

// Assert all other types (probably Strings)
test.equals(actual, expected)
test.end()
return test.passing()
})
)
})
Expand Down
2 changes: 1 addition & 1 deletion test/fixture.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"selectors.identifiers.average": 1,
// "selectors.identifiers.top": [{"count": 1, "value": "body"}],
"selectors.identifiers.max.count": 1,
// "selectors.identifiers.max.value": "foo",
"selectors.identifiers.max.value": "body",
"selectors.js.total": 0,
"selectors.js.totalUnique": 0,
"selectors.js.unique": [],
Expand Down

0 comments on commit c65f55a

Please sign in to comment.