fix(CI): update CI build

This commit is contained in:
2018-09-01 16:40:42 +02:00
parent fa0d5af74e
commit 79a3420aa5
10 changed files with 175 additions and 427 deletions

View File

@ -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();