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:
parent
373115b4e9
commit
84bff8b74b
9 changed files with 2 additions and 5 deletions
Before ![]() (image error) Size: 49 B After ![]() (image error) Size: 49 B ![]() ![]() |
Before ![]() (image error) Size: 74 KiB After ![]() (image error) Size: 74 KiB ![]() ![]() |
|
@ -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),
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue