@@ -189,6 +189,15 @@ describe('call API', () => {
189189 ) ;
190190 } ) ;
191191
192+ it ( 'delete recording' , async ( ) => {
193+ // somewhat dummy test, we should do a proper test in the future
194+ await expect ( ( ) =>
195+ call . deleteRecording ( { session : 'test' , filename : 'test' } ) ,
196+ ) . rejects . toThrowError (
197+ `Stream error code 16: DeleteRecording failed with error: "recording doesn't exist"` ,
198+ ) ;
199+ } ) ;
200+
192201 it ( 'query recordings' , async ( ) => {
193202 // somewhat dummy test, we should do a proper test in the future
194203 const response = await call . listRecordings ( ) ;
@@ -221,5 +230,30 @@ describe('call API', () => {
221230 expect ( response . call . backstage ) . toBe ( true ) ;
222231 } ) ;
223232 } ) ;
233+
234+ describe ( 'transcriptions' , ( ) => {
235+ it ( 'start transcribing' , async ( ) => {
236+ // somewhat dummy test, we should do a proper test in the future where we join a call and start recording
237+ await expect ( ( ) => call . startTranscription ( ) ) . rejects . toThrowError (
238+ 'Stream error code 4: StartTranscription failed with error: "cannot transcribe inactive call"' ,
239+ ) ;
240+ } ) ;
241+
242+ it ( 'stop transcribing' , async ( ) => {
243+ // somewhat dummy test, we should do a proper test in the future
244+ await expect ( ( ) => call . stopTranscription ( ) ) . rejects . toThrowError (
245+ 'Stream error code 4: StopTranscription failed with error: "call is not being transcribed"' ,
246+ ) ;
247+ } ) ;
248+
249+ it ( 'delete transcription' , async ( ) => {
250+ // somewhat dummy test, we should do a proper test in the future
251+ await expect ( ( ) =>
252+ call . deleteTranscription ( { session : 'test' , filename : 'test' } ) ,
253+ ) . rejects . toThrowError (
254+ `Stream error code 16: DeleteTranscription failed with error: "transcription doesn't exist"` ,
255+ ) ;
256+ } ) ;
257+ } ) ;
224258 } ) ;
225259} ) ;
0 commit comments