support other repo

This commit is contained in:
Opportunity
2020-06-30 01:54:04 +08:00
Unverified
parent 2feaa3232f
commit 48f33e8789
66 changed files with 3280 additions and 1532 deletions
+2 -1
View File
@@ -1,9 +1,10 @@
import * as git from './git';
import * as semver from 'semver';
import { Repo } from './interfaces';
describe('lsRemote', () => {
it('should return correct records', async () => {
const records = await git.lsRemote();
const records = await git.lsRemote(Repo('xmake-io/xmake'));
expect(records).toHaveProperty('heads');
expect(records).toHaveProperty('tags');
expect(records).toHaveProperty('pull');