Skip to content

Commit f0ae2d7

Browse files
committed
Fix test names
1 parent 779e8b0 commit f0ae2d7

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

__test__/common/github/RepoRestrictedGitHubClient.test.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import {
77
GetRepositoryContentRequest,
88
GraphQLQueryRequest,
99
UpdatePullRequestCommentRequest,
10-
GitHubClient
1110
} from "@/common";
1211
import { jest } from '@jest/globals';
1312

@@ -37,7 +36,7 @@ describe('RepoRestrictedGitHubClient', () => {
3736
expect(gitHubClient.graphql).toHaveBeenCalledWith(request);
3837
});
3938

40-
it('should check suffix for getRepositoryContent', async () => {
39+
it('should delegate getRepositoryContent to the underlying client', async () => {
4140
const request: GetRepositoryContentRequest = {
4241
repositoryName: 'repo-suffix', path: '',
4342
repositoryOwner: '',
@@ -56,7 +55,7 @@ describe('RepoRestrictedGitHubClient', () => {
5655
await expect(client.getRepositoryContent(request)).rejects.toThrow("Invalid repository name");
5756
});
5857

59-
it('should check suffix for getPullRequestFiles', async () => {
58+
it('should delegate getPullRequestFiles to the underlying client', async () => {
6059
const request: GetPullRequestFilesRequest = {
6160
repositoryName: 'repo-suffix', pullRequestNumber: 1,
6261
appInstallationId: 0,
@@ -75,7 +74,7 @@ describe('RepoRestrictedGitHubClient', () => {
7574
await expect(client.getPullRequestFiles(request)).rejects.toThrow("Invalid repository name");
7675
});
7776

78-
it('should check suffix for getPullRequestComments', async () => {
77+
it('should delegate getPullRequestComments to the underlying client', async () => {
7978
const request: GetPullRequestCommentsRequest = {
8079
repositoryName: 'repo-suffix', pullRequestNumber: 1,
8180
appInstallationId: 0,
@@ -94,7 +93,7 @@ describe('RepoRestrictedGitHubClient', () => {
9493
await expect(client.getPullRequestComments(request)).rejects.toThrow("Invalid repository name");
9594
});
9695

97-
it('should check suffix for addCommentToPullRequest', async () => {
96+
it('should delegate addCommentToPullRequest to the underlying client', async () => {
9897
const request: AddCommentToPullRequestRequest = {
9998
repositoryName: 'repo-suffix', pullRequestNumber: 1, body: '',
10099
appInstallationId: 0,
@@ -113,7 +112,7 @@ describe('RepoRestrictedGitHubClient', () => {
113112
await expect(client.addCommentToPullRequest(request)).rejects.toThrow("Invalid repository name");
114113
});
115114

116-
it('should check suffix for updatePullRequestComment', async () => {
115+
it('should delegate updatePullRequestComment to the underlying client', async () => {
117116
const request: UpdatePullRequestCommentRequest = {
118117
repositoryName: 'repo-suffix', commentId: 1, body: '',
119118
appInstallationId: 0,

0 commit comments

Comments
 (0)