reorganized fixtures

This commit is contained in:
Vitaly Puzrin 2014-03-29 04:23:23 +04:00
parent 373115b4e9
commit 84bff8b74b
9 changed files with 2 additions and 5 deletions

View file

Before

Width:  |  Height:  |  Size: 49 B

After

Width:  |  Height:  |  Size: 49 B

View file

Before

Width:  |  Height:  |  Size: 74 KiB

After

Width:  |  Height:  |  Size: 74 KiB

View file

@ -14,12 +14,9 @@ var pako = require('../index');
// //
function loadSamples() { function loadSamples() {
var result = {}; var result = {};
var dir = path.join(__dirname, 'fixtures'); var dir = path.join(__dirname, 'fixtures/samples');
fs.readdirSync(dir).sort().forEach(function (sample) { fs.readdirSync(dir).sort().forEach(function (sample) {
if (fs.statSync(path.join(dir, sample)).isDirectory()) {
return;
}
var filepath = path.join(dir, sample), var filepath = path.join(dir, sample),
extname = path.extname(filepath), extname = path.extname(filepath),
basename = path.basename(filepath, extname), basename = path.basename(filepath, extname),

View file

@ -66,7 +66,7 @@ describe('Inflate states', function() {
describe('Inflate gzip header', function() { describe('Inflate gzip header', function() {
it('Check headers content from prepared file', function() { it('Check headers content from prepared file', function() {
var data = fs.readFileSync(path.join(__dirname, 'fixtures/header/test.gz')); var data = fs.readFileSync(path.join(__dirname, 'fixtures/gzip-headers.gz'));
var inflator = new pako.Inflate(); var inflator = new pako.Inflate();
inflator.push(data, true); inflator.push(data, true);