Skip to content

Commit b7fc541

Browse files
Copilotalexr00
andcommitted
Fix test builder for array handling
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
1 parent e9cf1fb commit b7fc541

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/test/builders/graphql/latestReviewCommitBuilder.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,12 @@ import { RateLimitBuilder } from './rateLimitBuilder';
1111
type Repository = NonNullable<LatestReviewCommitResponse['repository']>;
1212
type PullRequest = Repository['pullRequest'];
1313
type Reviews = PullRequest['reviews'];
14-
type ReviewNode = Reviews['nodes'][0];
15-
type Commit = ReviewNode['commit'];
1614

1715
export const LatestReviewCommitBuilder = createBuilderClass<LatestReviewCommitResponse>()({
1816
repository: createLink<Repository>()({
1917
pullRequest: createLink<PullRequest>()({
2018
reviews: createLink<Reviews>()({
21-
nodes: [
22-
createLink<ReviewNode>()({
23-
commit: createLink<Commit>()({
24-
oid: { default: 'abc' },
25-
}),
26-
}),
27-
],
19+
nodes: { default: [] },
2820
}),
2921
}),
3022
}),

0 commit comments

Comments
 (0)