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() {
52
52
//});
53
53
return stream . promise ( ) ;
54
54
} ) . 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. ' ) ;
56
56
done ( ) ;
57
57
} )
58
58
. catch ( done ) ;
@@ -72,7 +72,7 @@ describe("WatsonSpeechToText", function() {
72
72
stt . on ( 'error' , done )
73
73
. setEncoding ( 'utf8' )
74
74
. 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. ' ) ;
76
76
done ( ) ;
77
77
} ) ) ;
78
78
setTimeout ( stt . stop . bind ( stt ) , 8 * 1000 ) ;
@@ -90,7 +90,7 @@ describe("WatsonSpeechToText", function() {
90
90
cfg . data = results [ 1 ] ;
91
91
return WatsonSpeechToText . recognizeBlob ( cfg ) . promise ( )
92
92
. 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. ' ) ;
94
94
done ( ) ;
95
95
} ) ;
96
96
} )
You can’t perform that action at this time.
0 commit comments