fix(ci): update

This commit is contained in:
2018-09-02 14:21:05 +02:00
parent 75d94111a9
commit 9b3db5daca
10 changed files with 178 additions and 759 deletions

View File

@ -1,32 +1,31 @@
import { tap, expect } from '@pushrocks/tapbundle'
import projectinfo = require('../ts/index')
import { tap, expect } from '@pushrocks/tapbundle';
import projectinfo = require('../ts/index');
let path = require('path')
let testBasePath = path.resolve(__dirname)
let path = require('path');
let testBasePath = path.resolve(__dirname);
let myNpm = new projectinfo.ProjectinfoNpm(testBasePath, { gitAccessToken: 'sometoken' })
let myNpm = new projectinfo.ProjectinfoNpm(testBasePath, { gitAccessToken: 'sometoken' });
tap.test('should have .packageJson', async () => {
expect(myNpm.packageJson).have.property('version', '1.0.0')
expect(myNpm.packageJson).have.property('name', 'testpackage')
})
expect(myNpm.packageJson).have.property('version', '1.0.0');
expect(myNpm.packageJson).have.property('name', 'testpackage');
});
tap.test('should have .version', async () => {
expect(myNpm).have.property('version', '1.0.0')
})
expect(myNpm).have.property('version', '1.0.0');
});
tap.test('should have .name', async () => {
expect(myNpm).have.property('name', 'testpackage')
})
expect(myNpm).have.property('name', 'testpackage');
});
tap.test('should have .license', async () => {
expect(myNpm).have.property('license', 'MIT')
})
expect(myNpm).have.property('license', 'MIT');
});
tap.test('should have .git', async () => {
expect(myNpm.git.httpsUrl).equal('https://sometoken@github.com/someuser/somerepo.git')
})
expect(myNpm.git.httpsUrl).equal('https://sometoken@github.com/someuser/somerepo.git');
});
tap.test('should return a name', async () => {
expect(projectinfo.getNpmNameForDir(testBasePath)
).equal('testpackage')
})
expect(projectinfo.getNpmNameForDir(testBasePath)).equal('testpackage');
});
tap.start()
tap.start();