text: 'use strict';
  
  var test = require('tap').test;
  var fs = require('fs');
  var path = require('path');
  var temp = require('temp');
  var streamBuffers = require("stream-buffers");
  var unzip = require('../');
  
  test("get content of a single file entry out of a zip", function (t) {
    var archive = path.join(__dirname, '../testData/compressed-standard/archive.zip');
  
    fs.createReadStream(archive)
      .pipe(unzip.Parse())
      .on('entry', function(entry) {
        if (entry.path !== 'file.txt')
          return entry.autodrain();
  
        entry.buffer()
          .then(function(str) {
            var fileStr = fs.readFileSync(path.join(__dirname, '../testData/compressed-standard/inflated/file.txt'), 'utf8');
            t.equal(str.toString(), fileStr);
            t.end();
          });
      });
  });