feat(pipeline-tasks): 完善流程和测试用例。

This commit is contained in:
Ivan
2021-03-03 17:24:22 +08:00
parent 31a200206f
commit 64ec1433a6
4 changed files with 160 additions and 26 deletions

View File

@ -59,19 +59,19 @@ describe('ReposService', () => {
it('getWorkspaceRoot', () => {
expect(service.getWorkspaceRoot(getTest1Project())).toBeDefined();
});
describe('listLogs', () => {
describe.skip('listLogs', () => {
it('should be return logs', async () => {
const result = await service.listLogs({ projectId: '1' });
expect(result).toBeDefined();
}, 20_000);
});
describe('listBranch', () => {
describe.skip('listBranch', () => {
it('should be return branches', async () => {
const result = await service.listBranches({ projectId: '1' });
expect(result).toBeDefined();
}, 10_000);
});
describe('checkoutBranch', () => {
describe.skip('checkoutBranch', () => {
it('should be checkout', async () => {
await service.checkoutBranch(getTest1Project(), 'master');
const filePath = join(
@ -108,7 +108,7 @@ describe('ReposService', () => {
}, 30_000);
});
describe('checkoutCommit', () => {
describe.skip('checkoutCommit', () => {
it('should be checkout', async () => {
await service.checkoutCommit(getTest1Project(), '498c782685');
const filePath = join(