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

Commit

Permalink
Add Internals section to README
Browse files Browse the repository at this point in the history
  • Loading branch information
roadhump committed Jan 7, 2016
1 parent 5bdece6 commit abcca63
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,25 @@ module.exports = function(config) {

The `grep` argument is passed directly to mocha.

## Internals

On the end of each test `karma-mocha` passes to `karma` result object with fields:

* `description` Test title.
* `suite` List of titles of test suites.
* `success` True if test is succeed, false otherwise.
* `skipped` True if test is skipped.
* `time` Test duration.
* `log` List of errors.
* `assertionErrors` List of additional error info:
* `name` Error name.
* `message` Error message.
* `actual` Actual data in assertion, serialized to string.
* `expected` Expected data in assertion, serialized to string.
* `showDiff` True if it is configured by assertion to show diff.

This object will be passed to test reporter.


----

Expand Down

0 comments on commit abcca63

Please sign in to comment.