Bring coverage up to 100%
This commit is contained in:
parent
4d944365df
commit
552c1a601d
7
.babelrc
7
.babelrc
|
@ -13,7 +13,12 @@
|
||||||
[ "es2015", { "loose": true } ]
|
[ "es2015", { "loose": true } ]
|
||||||
],
|
],
|
||||||
"plugins": [
|
"plugins": [
|
||||||
"istanbul"
|
[ "istanbul", {
|
||||||
|
"exclude": [
|
||||||
|
"src/blob.js",
|
||||||
|
"test"
|
||||||
|
]
|
||||||
|
} ]
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"rollup": {
|
"rollup": {
|
||||||
|
|
|
@ -245,6 +245,7 @@ function createHeadersIterator(target, kind) {
|
||||||
|
|
||||||
const HeadersIteratorPrototype = Object.setPrototypeOf({
|
const HeadersIteratorPrototype = Object.setPrototypeOf({
|
||||||
next() {
|
next() {
|
||||||
|
// istanbul ignore if
|
||||||
if (!this ||
|
if (!this ||
|
||||||
Object.getPrototypeOf(this) !== HeadersIteratorPrototype) {
|
Object.getPrototypeOf(this) !== HeadersIteratorPrototype) {
|
||||||
throw new TypeError('Value of `this` is not a HeadersIterator');
|
throw new TypeError('Value of `this` is not a HeadersIterator');
|
||||||
|
|
Loading…
Reference in New Issue