Skip to content

Commit 7dc5eeb

Browse files
committed
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`.
1 parent 644a83d commit 7dc5eeb

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

extensions/ql-vscode/src/vscode-tests/factories/remote-queries/shared/skipped-repositories.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export function createMockSkippedRepos(): VariantAnalysisSkippedRepositories {
88
return {
99
accessMismatchRepos: createMockSkippedRepoGroup(),
1010
noCodeqlDbRepos: createMockSkippedRepoGroup(),
11-
notFoundRepos: createMockSkippedRepoGroup(),
11+
notFoundRepos: createMockNotFoundRepoGroup(),
1212
overLimitRepos: createMockSkippedRepoGroup()
1313
};
1414
}
@@ -28,3 +28,17 @@ export function createMockSkippedRepoGroup(): VariantAnalysisSkippedRepositoryGr
2828
]
2929
};
3030
}
31+
32+
export function createMockNotFoundRepoGroup(): VariantAnalysisSkippedRepositoryGroup {
33+
return {
34+
repositoryCount: 2,
35+
repositories: [
36+
{
37+
fullName: 'github/' + faker.random.word(),
38+
},
39+
{
40+
fullName: 'github/' + faker.random.word(),
41+
}
42+
]
43+
};
44+
}

0 commit comments

Comments
 (0)