mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Expose own version as sharp.versions.sharp #3471
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
'use strict';
|
||||
|
||||
const assert = require('assert');
|
||||
const semver = require('semver');
|
||||
const sharp = require('../../');
|
||||
|
||||
describe('Utilities', function () {
|
||||
@@ -137,7 +138,8 @@ describe('Utilities', function () {
|
||||
describe('Versions', function () {
|
||||
it('Contains expected attributes', function () {
|
||||
assert.strictEqual('object', typeof sharp.versions);
|
||||
assert.strictEqual('string', typeof sharp.versions.vips);
|
||||
assert(semver.valid(sharp.versions.vips));
|
||||
assert(semver.valid(sharp.versions.sharp));
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user