mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Linter: apply all recommended biome settings
Enforces previously-skipped useArrowFunction check
This commit is contained in:
@@ -199,11 +199,11 @@ describe('GIF input', () => {
|
||||
);
|
||||
});
|
||||
|
||||
it('should work with streams when only animated is set', function (_t, done) {
|
||||
it('should work with streams when only animated is set', (_t, done) => {
|
||||
fs.createReadStream(fixtures.inputGifAnimated)
|
||||
.pipe(sharp({ animated: true }))
|
||||
.gif()
|
||||
.toBuffer(function (err, data, info) {
|
||||
.toBuffer((err, data, info) => {
|
||||
if (err) throw err;
|
||||
assert.strictEqual(true, data.length > 0);
|
||||
assert.strictEqual('gif', info.format);
|
||||
@@ -211,11 +211,11 @@ describe('GIF input', () => {
|
||||
});
|
||||
});
|
||||
|
||||
it('should work with streams when only pages is set', function (_t, done) {
|
||||
it('should work with streams when only pages is set', (_t, done) => {
|
||||
fs.createReadStream(fixtures.inputGifAnimated)
|
||||
.pipe(sharp({ pages: -1 }))
|
||||
.gif()
|
||||
.toBuffer(function (err, data, info) {
|
||||
.toBuffer((err, data, info) => {
|
||||
if (err) throw err;
|
||||
assert.strictEqual(true, data.length > 0);
|
||||
assert.strictEqual('gif', info.format);
|
||||
|
||||
Reference in New Issue
Block a user