Replace deprecated URL parser

Fix up various linter errors
This commit is contained in:
Lovell Fuller
2019-09-22 22:46:28 +01:00
parent 14af0bda61
commit 9c7f6fcb2b
9 changed files with 402 additions and 397 deletions

View File

@@ -53,7 +53,8 @@ describe('Raw pixel data', function () {
width: info.width,
height: info.height,
channels: info.channels
} })
}
})
.jpeg()
.toBuffer(function (err, data, info) {
if (err) throw err;
@@ -81,7 +82,8 @@ describe('Raw pixel data', function () {
width: info.width,
height: info.height,
channels: info.channels
} })
}
})
.png()
.toBuffer(function (err, data, info) {
if (err) throw err;