Skip to content

Commit 57b99d0

Browse files
Jigsawcopybara-github
authored andcommitted
Internal change
GitOrigin-RevId: b0c6271778dff10944eac3ac5b19cd16cb462192
1 parent b584eba commit 57b99d0

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/tasks/utils/citation_util.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ describe("Citation Utils Test", () => {
3434
},
3535
};
3636
expect(voteTallySummary(comment)).toBe(
37-
"Votes: group-group1(Agree=10, Disagree=5, Pass=0) group-group2(Agree=15, Disagree=2, Pass=3)"
37+
"Votes: group1(Agree=10, Disagree=5, Pass=0) group2(Agree=15, Disagree=2, Pass=3)"
3838
);
3939
});
4040
});
@@ -69,7 +69,7 @@ describe("commentCitation", () => {
6969
},
7070
};
7171
expect(commentCitation(comment)).toBe(
72-
`[123](## "This is a test comment.\nVotes: group-group1(Agree=10, Disagree=5, Pass=1) group-group2(Agree=15, Disagree=2, Pass=3)")`
72+
`[123](## "This is a test comment.\nVotes: group1(Agree=10, Disagree=5, Pass=1) group2(Agree=15, Disagree=2, Pass=3)")`
7373
);
7474
});
7575

src/tasks/utils/citation_utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export function voteTallySummary(comment: Comment): string {
7272
return Object.entries(comment.voteTalliesByGroup as object).reduce((acc, [key, value]) => {
7373
return (
7474
acc +
75-
` group-${key}(Agree=${value.agreeCount}, Disagree=${value.disagreeCount}, Pass=${value.passCount || 0})`
75+
` ${key}(Agree=${value.agreeCount}, Disagree=${value.disagreeCount}, Pass=${value.passCount || 0})`
7676
);
7777
}, "Votes:");
7878
} else {

src/validation/grounding.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ describe("grounding test", () => {
4949
id: "1",
5050
text: "I like cats",
5151
voteTalliesByGroup: {
52-
"0": { agreeCount: 10, disagreeCount: 5, passCount: 0, totalCount: 16 },
52+
"group-0": { agreeCount: 10, disagreeCount: 5, passCount: 0, totalCount: 16 },
5353
},
5454
},
5555
{
5656
id: "2",
5757
text: "I don't like cats",
5858
voteTalliesByGroup: {
59-
"0": { agreeCount: 5, disagreeCount: 10, passCount: 6, totalCount: 20 },
59+
"group-0": { agreeCount: 5, disagreeCount: 10, passCount: 6, totalCount: 20 },
6060
},
6161
},
6262
];

0 commit comments

Comments
 (0)