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:
@@ -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(),
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user