Skip to content

Commit

Permalink
Standard lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoColomb committed Jul 30, 2019
1 parent 76fb284 commit fce9b25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/abstract-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function prepare (suite) {
}
// Deep merge with default
for (const key in test.default) {
if (test.default.hasOwnProperty(key)) {
if (Object.prototype.hasOwnProperty.call(test.default, key)) {
if (typeof test.default[key] === 'object') {
request[key] = Object.assign({}, test.default[key], request[key] || {})
} else {
Expand Down Expand Up @@ -65,7 +65,7 @@ export function test (data) {
checks[`is ${header} header correct`] = (r) => isEqual(
r,
header,
headers[header] === true ? r.headers.hasOwnProperty(header) : r.headers[header],
headers[header] === true ? Object.prototype.hasOwnProperty.call(r.headers, header) : r.headers[header],
(headers[header] || undefined)
)
}
Expand Down

0 comments on commit fce9b25

Please sign in to comment.