Generate a real NotFoundRepoGroup

This won't have an `id` field. We initially generated this the same
way we did for all other skipped repos, but this one is special because
it's only providing the fullName field, while the others also provide
`id` and `private`.
This commit is contained in:
Elena Tanasoiu
2022-10-03 17:27:47 +01:00
parent 644a83d6d8
commit 7dc5eebcc1

View File

@@ -8,7 +8,7 @@ export function createMockSkippedRepos(): VariantAnalysisSkippedRepositories {
return {
accessMismatchRepos: createMockSkippedRepoGroup(),
noCodeqlDbRepos: createMockSkippedRepoGroup(),
notFoundRepos: createMockSkippedRepoGroup(),
notFoundRepos: createMockNotFoundRepoGroup(),
overLimitRepos: createMockSkippedRepoGroup()
};
}
@@ -28,3 +28,17 @@ export function createMockSkippedRepoGroup(): VariantAnalysisSkippedRepositoryGr
]
};
}
export function createMockNotFoundRepoGroup(): VariantAnalysisSkippedRepositoryGroup {
return {
repositoryCount: 2,
repositories: [
{
fullName: 'github/' + faker.random.word(),
},
{
fullName: 'github/' + faker.random.word(),
}
]
};
}