mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 10:30:15 +02:00
A few small fixes to the test scripts
This commit is contained in:
parent
f6fd45cc90
commit
3614d14f83
@ -9,7 +9,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"imagemagick": "^0.1.3",
|
||||
"imagemagick-native": "^1.7.0",
|
||||
"imagemagick-native": "mash/node-imagemagick-native",
|
||||
"gm": "^1.17.0",
|
||||
"async": "^0.9.0",
|
||||
"semver": "^4.3.0",
|
||||
|
@ -3,6 +3,6 @@ if ! type valgrind >/dev/null; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
curl -O https://raw.githubusercontent.com/jcupitt/libvips/master/libvips.supp test/leak/libvips.supp
|
||||
curl -O https://raw.githubusercontent.com/jcupitt/libvips/master/libvips.supp
|
||||
cd ../../
|
||||
G_SLICE=always-malloc G_DEBUG=gc-friendly valgrind --suppressions=test/leak/libvips.supp --suppressions=test/leak/sharp.supp --leak-check=full --show-leak-kinds=definite,indirect,possible --num-callers=20 --trace-children=yes npm test
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user