mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Replace deprecated URL parser
Fix up various linter errors
This commit is contained in:
@@ -7,7 +7,7 @@ const fixtures = require('../fixtures');
|
||||
|
||||
describe('toBuffer', () => {
|
||||
it('reusing same sharp object does not reset previously passed parameters to toBuffer', (done) => {
|
||||
let image = sharp(fixtures.inputJpg);
|
||||
const image = sharp(fixtures.inputJpg);
|
||||
image.toBuffer({ resolveWithObject: true }).then((obj) => {
|
||||
image.toBuffer().then((buff) => {
|
||||
assert.strict.equal(Buffer.isBuffer(buff), true);
|
||||
|
||||
Reference in New Issue
Block a user