mirror of
https://github.com/tiktok/sparo.git
synced 2024-11-14 19:35:12 -05:00
fix: ci test
This commit is contained in:
parent
3ca49237c8
commit
4b6d99d014
1 changed files with 8 additions and 1 deletions
|
@ -26,7 +26,14 @@ describe(GitService.name, () => {
|
|||
|
||||
it('should get commit object type', async () => {
|
||||
const gitService = await getFromContainerAsync(GitService);
|
||||
const objectType = gitService.getObjectType('c48b5c0ceca929acd93e5a17b768c63c48eefc83');
|
||||
// Shallow clone is used in CI builds, so getting the current commit SHA of HEAD
|
||||
const commitSHA: string = gitService
|
||||
.executeGitCommandAndCaptureOutput({
|
||||
args: ['rev-parse', 'HEAD']
|
||||
})
|
||||
.trim();
|
||||
expect(commitSHA).toBeTruthy();
|
||||
const objectType = gitService.getObjectType(commitSHA);
|
||||
expect(objectType).toBe('commit');
|
||||
});
|
||||
it('should get unknown object type', async () => {
|
||||
|
|
Loading…
Reference in a new issue