@@ -33,7 +33,7 @@ describe("Summary Controller - Audio Content", () => {
3333
3434 it ( "should return error if audio file not found" , async ( ) => {
3535 req . body . audioData = {
36- audioFilePath : "invalid/path/to/audio.mp3" ,
36+ audioFileName : "invalid/path/to/audio.mp3" ,
3737 format : "mp3" ,
3838 } ;
3939 sinon . stub ( fs , "existsSync" ) . returns ( false ) ;
@@ -45,7 +45,7 @@ describe("Summary Controller - Audio Content", () => {
4545
4646 it ( "should return error if audio format not supported" , async ( ) => {
4747 req . body . audioData = {
48- audioFilePath : "valid/path/to/audio.mp3" ,
48+ audioFileName : "valid/path/to/audio.mp3" ,
4949 format : "unsupported_format" ,
5050 } ;
5151 sinon . stub ( fs , "existsSync" ) . returns ( true ) ;
@@ -57,7 +57,7 @@ describe("Summary Controller - Audio Content", () => {
5757
5858 it ( "should return error if no text found in the audio" , async ( ) => {
5959 req . body . audioData = {
60- audioFilePath : "src/utils/audio/audios/ no-speech.mp3" ,
60+ audioFileName : "no-speech.mp3" ,
6161 format : "mp3" ,
6262 } ;
6363 sinon . stub ( fs , "existsSync" ) . returns ( true ) ;
@@ -71,7 +71,7 @@ describe("Summary Controller - Audio Content", () => {
7171
7272 it ( "should generate summary from text" , async ( ) => {
7373 req . body . audioData = {
74- audioFilePath : "valid/path/to/audio.mp3" ,
74+ audioFileName : "valid/path/to/audio.mp3" ,
7575 format : "mp3" ,
7676 } ;
7777 sinon . stub ( fs , "existsSync" ) . returns ( true ) ;
@@ -90,7 +90,7 @@ describe("Summary Controller - Audio Content", () => {
9090
9191 it ( "should handle internal server error" , async ( ) => {
9292 req . body . audioData = {
93- audioFilePath : "valid/path/to/audio.mp3" ,
93+ audioFileName : "valid/path/to/audio.mp3" ,
9494 format : "mp3" ,
9595 } ;
9696 sinon . stub ( fs , "existsSync" ) . returns ( true ) ;
0 commit comments