electron/spec/modules/unzip.coffee
Cheng Zhao 3d9af77b37 💄
2013-08-12 14:15:28 +08:00

12 lines
321 B
CoffeeScript

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