Skip to content

Commit

Permalink
spec: fix headers tests to match APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound committed Sep 14, 2018
1 parent 9e59d2a commit 4bcc088
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/api-web-request-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ describe('webRequest module', () => {
ses.webRequest.onHeadersReceived((details, callback) => {
assert.strictEqual(details.statusLine, 'HTTP/1.1 200 OK')
assert.strictEqual(details.statusCode, 200)
assert.strictEqual(details.responseHeaders['Custom'], 'Header')
assert.deepStrictEqual(details.responseHeaders['Custom'], ['Header'])
callback({})
})
$.ajax({
Expand Down Expand Up @@ -314,7 +314,7 @@ describe('webRequest module', () => {
assert.strictEqual(typeof details.fromCache, 'boolean')
assert.strictEqual(details.statusLine, 'HTTP/1.1 200 OK')
assert.strictEqual(details.statusCode, 200)
assert.strictEqual(details.responseHeaders['Custom'], 'Header')
assert.deepStrictEqual(details.responseHeaders['Custom'], ['Header'])
})
$.ajax({
url: defaultURL,
Expand Down

0 comments on commit 4bcc088

Please sign in to comment.