spec: fix headers tests to match APIs
This commit is contained in:
parent
9e59d2a78d
commit
4bcc08826b
1 changed files with 2 additions and 2 deletions
|
@ -225,7 +225,7 @@ describe('webRequest module', () => {
|
||||||
ses.webRequest.onHeadersReceived((details, callback) => {
|
ses.webRequest.onHeadersReceived((details, callback) => {
|
||||||
assert.strictEqual(details.statusLine, 'HTTP/1.1 200 OK')
|
assert.strictEqual(details.statusLine, 'HTTP/1.1 200 OK')
|
||||||
assert.strictEqual(details.statusCode, 200)
|
assert.strictEqual(details.statusCode, 200)
|
||||||
assert.strictEqual(details.responseHeaders['Custom'], 'Header')
|
assert.deepStrictEqual(details.responseHeaders['Custom'], ['Header'])
|
||||||
callback({})
|
callback({})
|
||||||
})
|
})
|
||||||
$.ajax({
|
$.ajax({
|
||||||
|
@ -314,7 +314,7 @@ describe('webRequest module', () => {
|
||||||
assert.strictEqual(typeof details.fromCache, 'boolean')
|
assert.strictEqual(typeof details.fromCache, 'boolean')
|
||||||
assert.strictEqual(details.statusLine, 'HTTP/1.1 200 OK')
|
assert.strictEqual(details.statusLine, 'HTTP/1.1 200 OK')
|
||||||
assert.strictEqual(details.statusCode, 200)
|
assert.strictEqual(details.statusCode, 200)
|
||||||
assert.strictEqual(details.responseHeaders['Custom'], 'Header')
|
assert.deepStrictEqual(details.responseHeaders['Custom'], ['Header'])
|
||||||
})
|
})
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: defaultURL,
|
url: defaultURL,
|
||||||
|
|
Loading…
Reference in a new issue