mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Fail fast for Buffer with unsupported format #105
This commit is contained in:
@@ -185,11 +185,4 @@ describe('Image metadata', function() {
|
||||
});
|
||||
});
|
||||
|
||||
it('Report an invalid image as an error', function(done) {
|
||||
sharp(new Buffer([0x1, 0x2, 0x3, 0x4])).metadata(function (err, metadata) {
|
||||
assert.ok(err);
|
||||
assert.ok(err instanceof Error);
|
||||
done();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user