Remove use of deprecated functions from test code

This commit is contained in:
Lovell Fuller
2016-11-04 10:18:25 +00:00
parent 55998707a5
commit deb978bf57
7 changed files with 254 additions and 238 deletions

View File

@@ -60,7 +60,9 @@ const _createInputDescriptor = function _createInputDescriptor (input, inputOpti
* @param {Function} callback
*/
const _write = function _write (chunk, encoding, callback) {
/* istanbul ignore else */
if (Array.isArray(this.options.input.buffer)) {
/* istanbul ignore else */
if (is.buffer(chunk)) {
this.options.input.buffer.push(chunk);
callback();