Fix issue where actual/expected was same variable
This commit is contained in:
parent
5d94221c61
commit
d705f4cbac
1 changed files with 2 additions and 3 deletions
|
@ -587,10 +587,9 @@ describe('session module', function () {
|
||||||
it('can create an interrupted download item', function (done) {
|
it('can create an interrupted download item', function (done) {
|
||||||
ipcRenderer.sendSync('set-download-option', true, false)
|
ipcRenderer.sendSync('set-download-option', true, false)
|
||||||
const filePath = path.join(__dirname, 'fixtures', 'mock.pdf')
|
const filePath = path.join(__dirname, 'fixtures', 'mock.pdf')
|
||||||
const urlChain = ['http://127.0.0.1/']
|
|
||||||
const options = {
|
const options = {
|
||||||
path: filePath,
|
path: filePath,
|
||||||
urlChain: urlChain,
|
urlChain: ['http://127.0.0.1/'],
|
||||||
mimeType: 'application/pdf',
|
mimeType: 'application/pdf',
|
||||||
offset: 0,
|
offset: 0,
|
||||||
length: 5242880
|
length: 5242880
|
||||||
|
@ -601,7 +600,7 @@ describe('session module', function () {
|
||||||
totalBytes, filename,
|
totalBytes, filename,
|
||||||
savePath) {
|
savePath) {
|
||||||
assert.equal(state, 'interrupted')
|
assert.equal(state, 'interrupted')
|
||||||
assert.deepEqual(urlChain, urlChain)
|
assert.deepEqual(urlChain, ['http://127.0.0.1/'])
|
||||||
assert.equal(mimeType, 'application/pdf')
|
assert.equal(mimeType, 'application/pdf')
|
||||||
assert.equal(receivedBytes, 0)
|
assert.equal(receivedBytes, 0)
|
||||||
assert.equal(totalBytes, 5242880)
|
assert.equal(totalBytes, 5242880)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue