Expose libvips+deps versions attribute

Add versions.json for Linux packaging

Bump vips-dev Windows version for latest libpng
This commit is contained in:
Lovell Fuller
2015-11-22 20:58:38 +00:00
parent 01a1377972
commit 8012733a52
6 changed files with 123 additions and 38 deletions

View File

@@ -44,6 +44,18 @@ describe('Threshold', function() {
});
});
it('threshold true (=128)', function(done) {
sharp(fixtures.inputJpg)
.resize(320, 240)
.threshold(true)
.toBuffer(function(err, data, info) {
assert.strictEqual('jpeg', info.format);
assert.strictEqual(320, info.width);
assert.strictEqual(240, info.height);
fixtures.assertSimilar(fixtures.expected('threshold-128.jpg'), data, done);
});
});
it('threshold default jpeg', function(done) {
sharp(fixtures.inputJpg)
.resize(320, 240)

View File

@@ -72,4 +72,11 @@ describe('Utilities', function() {
});
});
describe('Versions', function() {
it('Contains expected attributes', function() {
assert.strictEqual('object', typeof sharp.versions);
assert.strictEqual('string', typeof sharp.versions.vips);
});
});
});