A few small fixes to the test scripts

This commit is contained in:
Lovell Fuller
2015-04-16 11:09:05 +01:00
parent f6fd45cc90
commit 3614d14f83
3 changed files with 3 additions and 3 deletions

View File

@@ -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);