From d705f4cbac4f4074a15fe6f8977e1696d8bcaa24 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Fri, 9 Dec 2016 09:36:44 -0800 Subject: [PATCH] Fix issue where actual/expected was same variable --- spec/api-session-spec.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/spec/api-session-spec.js b/spec/api-session-spec.js index b785e8cb0f..f7a5330fa7 100644 --- a/spec/api-session-spec.js +++ b/spec/api-session-spec.js @@ -587,10 +587,9 @@ describe('session module', function () { it('can create an interrupted download item', function (done) { ipcRenderer.sendSync('set-download-option', true, false) const filePath = path.join(__dirname, 'fixtures', 'mock.pdf') - const urlChain = ['http://127.0.0.1/'] const options = { path: filePath, - urlChain: urlChain, + urlChain: ['http://127.0.0.1/'], mimeType: 'application/pdf', offset: 0, length: 5242880 @@ -601,7 +600,7 @@ describe('session module', function () { totalBytes, filename, savePath) { assert.equal(state, 'interrupted') - assert.deepEqual(urlChain, urlChain) + assert.deepEqual(urlChain, ['http://127.0.0.1/']) assert.equal(mimeType, 'application/pdf') assert.equal(receivedBytes, 0) assert.equal(totalBytes, 5242880)