Add support for mocha-json

This commit is contained in:
Michal Dorner 2021-02-23 22:39:35 +01:00
parent f285c4c6d7
commit 9b675bd55f
No known key found for this signature in database
GPG key ID: 9EEE04B48DA36786
21 changed files with 1588 additions and 59 deletions

View file

@ -0,0 +1,40 @@
![Tests failed](https://img.shields.io/badge/tests-1%20passed%2C%205%20failed%2C%201%20skipped-critical)
## <a id="user-content-r0" href="#r0">fixtures/mocha-json.json</a>
**7** tests were completed in **14ms** with **1** passed, **5** failed and **1** skipped.
|Test suite|Passed|Failed|Skipped|Time|
|:---|---:|---:|---:|---:|
|[test/main.test.js](#r0s0)|1✔|3❌||1ms|
|[test/second.test.js](#r0s1)||1❌|1✖|NaNms|
|[test/test.js](#r0s2)||1❌||0ms|
### <a id="user-content-r0s0" href="#r0s0">test/main.test.js</a>
**4** tests were completed in **1ms** with **1** passed, **3** failed and **0** skipped.
**Test 1**
|Result|Test|Time|
|:---:|:---|---:|
|✔️|Passing test|0ms|
**Test 1 Test 1.1**
|Result|Test|Time|
|:---:|:---|---:|
|❌|Exception in target unit|0ms|
|❌|Failing test|1ms|
**Test 2**
|Result|Test|Time|
|:---:|:---|---:|
|❌|Exception in test|0ms|
### <a id="user-content-r0s1" href="#r0s1">test/second.test.js</a>
**2** tests were completed in **NaNms** with **0** passed, **1** failed and **1** skipped.
|Result|Test|Time|
|:---:|:---|---:|
|✖️|Skipped test|NaNms|
|❌|Timeout test|10ms|
### <a id="user-content-r0s2" href="#r0s2">test/test.js</a>
**1** tests were completed in **0ms** with **0** passed, **1** failed and **0** skipped.
**Array #indexOf()**
|Result|Test|Time|
|:---:|:---|---:|
|❌|should return -1 when the value is not present|0ms|