electron/spec/modules/unzip.coffee

13 lines
321 B
CoffeeScript
Raw Normal View History

2013-07-18 07:19:36 +00:00
assert = require 'assert'
fs = require 'fs'
path = require 'path'
unzip = require 'unzip'
fixtures = path.resolve __dirname, '..', 'fixtures'
2013-08-12 06:15:28 +00:00
describe 'unzip module', ->
it 'fires close event', (done) ->
fs.createReadStream(path.join(fixtures, 'zip', 'a.zip'))
.pipe(unzip.Parse())
.on('close', done)