Switch from custom trim op to vips_find_trim #914

This commit is contained in:
Lovell Fuller
2018-10-02 11:24:32 +01:00
parent 11900945eb
commit 21fbe546b8
8 changed files with 34 additions and 65 deletions

View File

@@ -50,7 +50,7 @@ describe('Trim borders', function () {
});
describe('Invalid thresholds', function () {
[-1, 100, 'fail', {}].forEach(function (threshold) {
[-1, 'fail', {}].forEach(function (threshold) {
it(JSON.stringify(threshold), function () {
assert.throws(function () {
sharp().trim(threshold);