mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
A few small fixes to the test scripts
This commit is contained in:
@@ -610,7 +610,7 @@ describe('Input/output', function() {
|
||||
.toFormat('png')
|
||||
.toFile(fixtures.path('output.svg.png'), function(err, info) {
|
||||
if (err) {
|
||||
assert.strictEqual('Input file is of an unsupported image format', err.message);
|
||||
assert.strictEqual(0, err.message.indexOf('Input file is of an unsupported image format'));
|
||||
} else {
|
||||
assert.strictEqual(true, info.size > 0);
|
||||
assert.strictEqual('png', info.format);
|
||||
|
||||
Reference in New Issue
Block a user