File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ describe("WatsonSpeechToText", function() {
5252 //});
5353 return stream . promise ( ) ;
5454 } ) . then ( function ( transcription ) {
55- assert . equal ( transcription . trim ( ) , 'thunderstorms could produce large hail isolated tornadoes and heavy rain' ) ;
55+ assert . equal ( transcription , 'Thunderstorms could produce large hail isolated tornadoes and heavy rain. ' ) ;
5656 done ( ) ;
5757 } )
5858 . catch ( done ) ;
@@ -72,7 +72,7 @@ describe("WatsonSpeechToText", function() {
7272 stt . on ( 'error' , done )
7373 . setEncoding ( 'utf8' )
7474 . pipe ( concat ( function ( transcription ) {
75- assert . equal ( transcription . trim ( ) , 'thunderstorms could produce large hail isolated tornadoes and heavy rain' ) ;
75+ assert . equal ( transcription , 'Thunderstorms could produce large hail isolated tornadoes and heavy rain. ' ) ;
7676 done ( ) ;
7777 } ) ) ;
7878 setTimeout ( stt . stop . bind ( stt ) , 8 * 1000 ) ;
@@ -90,7 +90,7 @@ describe("WatsonSpeechToText", function() {
9090 cfg . data = results [ 1 ] ;
9191 return WatsonSpeechToText . recognizeBlob ( cfg ) . promise ( )
9292 . then ( function ( transcription ) {
93- assert . equal ( transcription . trim ( ) , 'thunderstorms could produce large hail isolated tornadoes and heavy rain' ) ;
93+ assert . equal ( transcription , 'Thunderstorms could produce large hail isolated tornadoes and heavy rain. ' ) ;
9494 done ( ) ;
9595 } ) ;
9696 } )
You can’t perform that action at this time.
0 commit comments