fix(CI): update CI build
This commit is contained in:
26
test/test.ts
26
test/test.ts
@ -1,22 +1,22 @@
|
||||
import { expect, tap } from '@pushrocks/tapbundle'
|
||||
import * as smartnpm from '../ts/index'
|
||||
import { expect, tap } from '@pushrocks/tapbundle';
|
||||
import * as smartnpm from '../ts/index';
|
||||
|
||||
let testRegistry: smartnpm.NpmRegistry
|
||||
let testPackage: smartnpm.NpmPackage
|
||||
let testRegistry: smartnpm.NpmRegistry;
|
||||
let testPackage: smartnpm.NpmPackage;
|
||||
|
||||
tap.test('should create valid instances', async () => {
|
||||
testRegistry = new smartnpm.NpmRegistry()
|
||||
expect(testRegistry).to.be.instanceof(smartnpm.NpmRegistry)
|
||||
testRegistry = new smartnpm.NpmRegistry();
|
||||
expect(testRegistry).to.be.instanceof(smartnpm.NpmRegistry);
|
||||
|
||||
testPackage = new smartnpm.NpmPackage({})
|
||||
expect(testPackage).to.be.instanceof(smartnpm.NpmPackage)
|
||||
})
|
||||
testPackage = new smartnpm.NpmPackage({});
|
||||
expect(testPackage).to.be.instanceof(smartnpm.NpmPackage);
|
||||
});
|
||||
|
||||
tap.test('should produce a valid search string and this return npmts', async () => {
|
||||
let packages = await testRegistry.search({
|
||||
name: 'npmts'
|
||||
})
|
||||
expect(packages[0].name).to.equal('npmts')
|
||||
})
|
||||
});
|
||||
expect(packages[0].name).to.equal('npmts');
|
||||
});
|
||||
|
||||
tap.start()
|
||||
tap.start();
|
||||
|
Reference in New Issue
Block a user