mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Upgrade to libvips v8.16.0-rc2
CI: Add Node.js 22 Bump devDeps Pin node-addon-api to prevent C++17 for now
This commit is contained in:
@@ -72,7 +72,7 @@ describe('failOn', () => {
|
||||
|
||||
it('returns errors to callback for truncated JPEG', function (done) {
|
||||
sharp(fixtures.inputJpgTruncated, { failOn: 'truncated' }).toBuffer(function (err, data, info) {
|
||||
assert.ok(err.message.includes('VipsJpeg: Premature end of'), err);
|
||||
assert.ok(err.message.includes('VipsJpeg: premature end of'), err);
|
||||
assert.strictEqual(data, undefined);
|
||||
assert.strictEqual(info, undefined);
|
||||
done();
|
||||
@@ -95,7 +95,7 @@ describe('failOn', () => {
|
||||
throw new Error('Expected rejection');
|
||||
})
|
||||
.catch(err => {
|
||||
done(err.message.includes('VipsJpeg: Premature end of') ? undefined : err);
|
||||
done(err.message.includes('VipsJpeg: premature end of') ? undefined : err);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user