1
0
Fork 0
mirror of https://github.com/0x5eal/rbxts-pako.git synced 2025-04-09 13:20:59 +01:00

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

(image error) Size: 49 B

After

(image error) Size: 49 B

View file

Before

(image error) Size: 74 KiB

After

(image error) Size: 74 KiB

View file

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

View file

@ -66,7 +66,7 @@ describe('Inflate states', function() {
describe('Inflate gzip header', 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();
inflator.push(data, true);