mirror of
https://github.com/lovell/sharp.git
synced 2025-12-18 23:05:04 +01:00
Migrate from mocha to Node.js native test runner
Includes coverage reports when using Node.js 22 onwards
This commit is contained in:
@@ -524,9 +524,7 @@ function _createInputDescriptor (input, inputOptions, containerOptions) {
|
||||
* @param {Function} callback
|
||||
*/
|
||||
function _write (chunk, _encoding, callback) {
|
||||
/* istanbul ignore else */
|
||||
if (Array.isArray(this.options.input.buffer)) {
|
||||
/* istanbul ignore else */
|
||||
if (is.buffer(chunk)) {
|
||||
if (this.options.input.buffer.length === 0) {
|
||||
this.on('finish', () => {
|
||||
|
||||
Reference in New Issue
Block a user