fix lint errors
This commit is contained in:
parent
eaa63c880e
commit
1577360312
2 changed files with 15 additions and 17 deletions
|
@ -2,7 +2,7 @@ const tape = require('tape')
|
|||
const proxyquire = require('proxyquire')
|
||||
const path = require('path')
|
||||
const sinon = require('sinon')
|
||||
const admZip = require('adm-zip')
|
||||
const AdmZip = require('adm-zip')
|
||||
const temp = require('temp')
|
||||
|
||||
let sandbox
|
||||
|
@ -59,7 +59,6 @@ tape('fails for unsupported platforms', (t) => {
|
|||
})
|
||||
|
||||
tape('extract file', (t) => {
|
||||
|
||||
sandbox.restore()
|
||||
|
||||
sandbox.stub(process, 'env').value(
|
||||
|
@ -67,7 +66,7 @@ tape('extract file', (t) => {
|
|||
)
|
||||
|
||||
// add file directly
|
||||
const zip = new admZip()
|
||||
const zip = new AdmZip()
|
||||
zip.addFile('test.txt', Buffer.from('electron install test'))
|
||||
zip.writeZip(path.join(tempDir, 'test.zip'))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue