(key: string, options?: Record<string, unknown>)
| 118 | |
| 119 | describe('buildDialogCompletionNotificationCopy', () => { |
| 120 | const t = (key: string, options?: Record<string, unknown>) => { |
| 121 | if (key === 'notify.dialogCompletedTitle') return 'BitFun finished a task'; |
| 122 | if (key === 'notify.dialogCompletedWithSession') { |
| 123 | return `${options?.sessionTitle} is ready.`; |
| 124 | } |
| 125 | if (key === 'notify.dialogFailedTitle') return 'BitFun task stopped'; |
| 126 | if (key === 'notify.dialogFailedWithSession') { |
| 127 | return `${options?.sessionTitle} stopped unexpectedly.`; |
| 128 | } |
| 129 | return 'A BitFun session is ready.'; |
| 130 | }; |
| 131 | |
| 132 | it('uses a product title and a session-aware body', () => { |
| 133 | expect( |
no outgoing calls
no test coverage detected