Skip to content

Commit 7d017c4

Browse files
Add tests for empty typed-call notes input
Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
1 parent 6752db4 commit 7d017c4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

app/utils/__tests__/call-kent-text-to-speech-notes.test.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,11 @@ test('removes duplicate AI disclosure from typed question', () => {
2626
`${AI_VOICE_DISCLOSURE_PREFIX}\nTyped question: Hello from a typed call.`,
2727
)
2828
})
29+
30+
test('returns empty string for empty input', () => {
31+
expect(formatCallKentTextToSpeechNotes('')).toBe('')
32+
})
33+
34+
test('returns empty string for whitespace-only input', () => {
35+
expect(formatCallKentTextToSpeechNotes(' ')).toBe('')
36+
})

0 commit comments

Comments
 (0)