Ospec: expose messages for passing tests, in addition to failing tests (#2227)

* ospec: all results, failing and passing, include .message and .context

Previously only failing tests had .message and .context.

* Updated docs

* Function was ugly

* Ospec verbose passing tests: put changelog update in right place
This commit is contained in:
Robin (Robert) Thomas 2018-11-21 14:47:10 -06:00 committed by Isiah Meadows
parent 0fd1bc9cae
commit b5219920ab
4 changed files with 14 additions and 7 deletions

View file

@ -633,7 +633,7 @@ o.spec("message", function() {
### String result.context
In case of failure, a `>`-separated string showing the structure of the test specification.
A `>`-separated string showing the structure of the test specification.
In the below example, `result.context` would be `testing > rocks`.
```javascript