Browse Source

Fix issue where actual/expected was same variable

Kevin Sawicki 8 years ago
parent
commit
d705f4cbac
1 changed files with 2 additions and 3 deletions
  1. 2 3
      spec/api-session-spec.js

+ 2 - 3
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)