Skip to content

Commit daba274

Browse files
committed
test fixes to expect default formatting
1 parent 7c58312 commit daba274

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
})

0 commit comments

Comments
 (0)