Skip to content

Commit 821bfc1

Browse files
committed
test: cover thread title normalization
1 parent ca306e4 commit 821bfc1

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

‎packages/provider-core/src/server/textGenerationUtils.test.ts‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,8 @@ describe("sanitizeCommitSubject", () => {
1515
});
1616
});
1717

18-
1918
describe("sanitizeThreadTitle", () => {
20-
it("keeps the seed title when the model returns the schema placeholder", () => {
21-
const generatedTitle = sanitizeThreadTitle("title");
22-
const previousTitle = "Implement issue #140";
23-
24-
expect(generatedTitle.toLowerCase() === "title" ? sanitizeThreadTitle(previousTitle) : generatedTitle)
25-
.toBe("Implement issue #140");
19+
it("normalizes generated titles", () => {
20+
expect(sanitizeThreadTitle(" Implement issue #140 ")).toBe("Implement issue #140");
2621
});
2722
});

0 commit comments

Comments
 (0)