From 4bcc08826ba891c67f5e860517f3ce4e94fb77da Mon Sep 17 00:00:00 2001 From: Samuel Attard Date: Fri, 14 Sep 2018 17:05:26 +1000 Subject: [PATCH] spec: fix headers tests to match APIs --- spec/api-web-request-spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/api-web-request-spec.js b/spec/api-web-request-spec.js index 4eeee87df4ee..1064cccea907 100644 --- a/spec/api-web-request-spec.js +++ b/spec/api-web-request-spec.js @@ -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,