mirror of
https://github.com/0x5eal/rbxts-pako.git
synced 2025-04-21 20:34:04 +01:00
reorganized fixtures
This commit is contained in:
parent
373115b4e9
commit
84bff8b74b
9 changed files with 2 additions and 5 deletions
Before Width: | Height: | Size: 49 B After Width: | Height: | Size: 49 B |
Before Width: | Height: | Size: 74 KiB After Width: | Height: | Size: 74 KiB |
|
@ -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),
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue