fix(core): update

This commit is contained in:
2023-11-07 04:19:54 +01:00
parent e3ab98751d
commit 32de8087ad
6 changed files with 37 additions and 21 deletions

View File

@ -35,7 +35,16 @@ tap.test('should extract existing files on disk', async () => {
const testSmartarchive = await smartarchive.SmartArchive.fromArchiveUrl(
'https://verdaccio.lossless.digital/@pushrocks%2fwebsetup/-/websetup-2.0.14.tgz'
);
const streamfileStream = await testSmartarchive.exportToFs(testPaths.nogitDir);
await testSmartarchive.exportToFs(testPaths.nogitDir);
});
tap.test('should extract a b2zip', async () => {
const dataUrl = 'https://daten.offeneregister.de/de_companies_ocdata.jsonl.bz2';
const testArchive = await smartarchive.SmartArchive.fromArchiveUrl(dataUrl);
await testArchive.exportToFs(
plugins.path.join(testPaths.nogitDir, 'de_companies_ocdata.jsonl'),
'data.jsonl',
);
})
tap.start();