Skip to content

An AI-powered search engine with a generative UI

style: apply prettier formatting to citation.test.ts

Yoshiki Miura527b65ee1601
diff --git a/lib/utils/__tests__/citation.test.ts b/lib/utils/__tests__/citation.test.ts
index 4d2c8299..9802a677 100644
--- a/lib/utils/__tests__/citation.test.ts
+++ b/lib/utils/__tests__/citation.test.ts
@@ -143,11 +143,14 @@ describe('processCitations', () => {
expect(result).toContain('[google](https://www.google.com)')
expect(result).toContain('[github](https://docs.github.com)')
- expect(result).toContain('[stackoverflow](https://stackoverflow.com/questions/123)')
+ expect(result).toContain(
+ '[stackoverflow](https://stackoverflow.com/questions/123)'
+ )
})
it('handles citation numbers at edge cases', () => {
- const content = 'Edge cases: [0](#toolCall1) [101](#toolCall1) [-1](#toolCall1)'
+ const content =
+ 'Edge cases: [0](#toolCall1) [101](#toolCall1) [-1](#toolCall1)'
const result = processCitations(content, mockCitationMaps)
// 0 and 101 are out of bounds (1-100), so they're replaced with empty string