Ran
|
Jobs
1
|
Files
12
|
Run time
2s
|
Badge
Embed ▾
README BADGES
|
push
travis-ci
<a href="https://github.com/nock/nock/commit/9472ad087">refactor: Bring common.js up to 100% coverage (#1583) #### Refactor and add tests for `stringifyRequest` Investigated possible, legit argument values. Adjusted the function to have clear defaults and remove unreachable code. Note that the only two existing tests both passed non-string values for the `body` arg when function is only ever explicitly passed a string. #### Refactor and add tests for `deleteHeadersField` While it’s not currently possible for this util to get invalid args from current callers, type checks were added per the TODO comment. Refactored the “meat” of the logic to use native JS. Added tests for invalid arg flows as well as verifying duplicate field removal. #### Add test for `percentEncode` The new test covers cases of characters that are reserved in RFC 3986 but not encoded by `encodeURIComponent`. Added JSDoc with info and refs. Further discussion can be found on the original issue #416 and the commit that added the logic </a><a class="double-link" href="https://github.com/nock/nock/commit/9bd894693">9bd894693</a>
787 of 814 branches covered (96.68%)
Branch coverage included in aggregate %.
1470 of 1484 relevant lines covered (99.06%)
191.51 hits per line
ID | Job ID | Ran | Files | Coverage | |
---|---|---|---|---|---|
4 | 3339.4 | 12 |
98.22 |
Travis Job 3339.4 |
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
---|