We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 191474d commit d602ee1Copy full SHA for d602ee1
2 files changed
packages/speech/src/index.js
@@ -137,7 +137,6 @@ Speech.prototype.endpointerTypes = {
137
*/
138
Speech.detectEncoding_ = function(filename) {
139
if (!is.string(filename)) {
140
- // istanbul ignore next
141
return;
142
}
143
packages/speech/test/index.js
@@ -158,6 +158,10 @@ describe('Speech', function() {
158
Speech.detectEncoding_('blah.mp3');
159
}, /Encoding could not be determined for file: blah\.mp3/);
160
});
161
+
162
+ it('should return nothing if the argument is not a string', function() {
163
+ assert.equal(Speech.detectEncoding_({}), undefined);
164
+ });
165
166
167
describe('findFile_', function() {
0 commit comments