electron/spec/modules/unzip.coffee
2013-07-18 15:19:36 +08:00

13 lines
354 B
CoffeeScript

assert = require 'assert'
fs = require 'fs'
path = require 'path'
unzip = require 'unzip'
fixtures = path.resolve __dirname, '..', 'fixtures'
describe 'modules', ->
describe 'unzip module', ->
it 'fires close event', (done) ->
fs.createReadStream(path.join(fixtures, 'zip', 'a.zip'))
.pipe(unzip.Parse())
.on('close', done)