spec: fix headers tests to match APIs

This commit is contained in:
Samuel Attard 2018-09-14 17:05:26 +10:00
parent 9e59d2a78d
commit 4bcc08826b
No known key found for this signature in database
GPG key ID: E89DDE5742D58C4E

View file

@ -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({
@ -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,