Skip to content

Commit 354d8f8

Browse files
committed
test forceZip64 option.
1 parent a839413 commit 354d8f8

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

test/zip-archive-output-stream.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,22 @@ describe('ZipArchiveOutputStream', function() {
106106
});
107107
});
108108
});
109+
110+
it('should force ZIP64', function(done) {
111+
var archive = new ZipArchiveOutputStream({
112+
forceZip64: true
113+
});
114+
var testStream = new WriteHashStream('tmp/zip-stream64.zip');
115+
var entry = new ZipArchiveEntry('stream.txt');
116+
117+
testStream.on('close', function() {
118+
done();
119+
});
120+
121+
archive.pipe(testStream);
122+
123+
archive.entry(entry, fs.createReadStream('test/fixtures/test.txt')).finish();
124+
});
109125
});
110126

111127
});

0 commit comments

Comments
 (0)