fix(core): update

This commit is contained in:
2020-03-16 15:13:58 +00:00
parent a85cf3d7a2
commit 9241056909
6 changed files with 19 additions and 15 deletions

View File

@ -12,7 +12,7 @@ const testPlugins = {
const testPaths = {
nogitDir: testPlugins.path.join(process.cwd(), '.nogit/')
}
};
import * as smartarchive from '../ts/index';
@ -22,9 +22,14 @@ tap.preTask('should prepare .nogit dir', async () => {
tap.preTask('should prepare downloads', async tools => {
const downloadedFile: Buffer = (
await testPlugins.smartrequest.getBinary('https://verdaccio.lossless.one/@pushrocks%2fwebsetup/-/websetup-2.0.14.tgz')
await testPlugins.smartrequest.getBinary(
'https://verdaccio.lossless.one/@pushrocks%2fwebsetup/-/websetup-2.0.14.tgz'
)
).body;
await testPlugins.smartfile.memory.toFs(downloadedFile, testPlugins.path.join(testPaths.nogitDir, 'test.tgz'));
await testPlugins.smartfile.memory.toFs(
downloadedFile,
testPlugins.path.join(testPaths.nogitDir, 'test.tgz')
);
});
tap.test('should extract files on disk', async () => {