fix(core): update

This commit is contained in:
2023-07-25 18:14:51 +02:00
parent e0a9e9702a
commit afa511550d
17 changed files with 1736 additions and 14631 deletions

View File

@ -1,4 +1,4 @@
import { expect, tap } from '@pushrocks/tapbundle';
import { expect, tap } from '@push.rocks/tapbundle';
import * as smartnpm from '../ts/index.js';
import { NpmRegistry } from '../ts/index.js';
@ -25,7 +25,7 @@ tap.test('should produce a valid search string and this return npmts', async ()
// lets test things with the verdaccio registry
tap.test('should create a verdaccio registry', async () => {
verdaccioRegistry = new NpmRegistry({
npmRegistryUrl: 'https://verdaccio.lossless.one',
npmRegistryUrl: 'https://verdaccio.lossless.digital',
});
expect(verdaccioRegistry).toBeInstanceOf(smartnpm.NpmRegistry);
});
@ -44,11 +44,8 @@ tap.test('should get a specific file from a package', async () => {
});
tap.test('should get a specific file from a package', async () => {
const wantedFiles = await verdaccioRegistry.getFilesFromPackage(
'@pushrocks/websetup',
'ts/'
);
for(const file of wantedFiles) {
const wantedFiles = await verdaccioRegistry.getFilesFromPackage('@pushrocks/websetup', 'ts/');
for (const file of wantedFiles) {
console.log(file.path);
}
});