Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions test/specs/headers.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function testHeaderValue(headers, key, val) {

if (!found) {
if (typeof val === 'undefined') {
expect(headers.hasOwnProperty(key)).toEqual(false);
expect(Object.prototype.hasOwnProperty.call(headers, key)).toEqual(false);
} else {
throw new Error(key + ' was not found in headers');
}
Expand All @@ -38,7 +38,7 @@ describe('headers', function () {

getAjaxRequest().then(function (request) {
for (const key in headers) {
if (headers.hasOwnProperty(key)) {
if (Object.prototype.hasOwnProperty.call(headers, key)) {
expect(request.requestHeaders[key]).toEqual(headers[key]);
}
}
Expand All @@ -59,7 +59,7 @@ describe('headers', function () {

return getAjaxRequest().then(function (request) {
for (const key in expectedHeaders) {
if (expectedHeaders.hasOwnProperty(key)) {
if (Object.prototype.hasOwnProperty.call(expectedHeaders, key)) {
expect(request.requestHeaders[key]).toEqual(expectedHeaders[key]);
}
}
Expand Down