Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosc90 committed Jul 18, 2024
1 parent daeb44d commit b55f85c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/unit/blur.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,19 @@ describe('Blur', function () {
});
});

it('specific options.sigma 10', function (done) {
sharp(fixtures.inputJpg)
.resize(320, 240)
.blur({ sigma: 10 })
.toBuffer(function (err, data, info) {
if (err) throw err;
assert.strictEqual('jpeg', info.format);
assert.strictEqual(320, info.width);
assert.strictEqual(240, info.height);
fixtures.assertSimilar(fixtures.expected('blur-10.jpg'), data, done);
});
});

it('specific radius 0.3', function (done) {
sharp(fixtures.inputJpg)
.resize(320, 240)
Expand Down

0 comments on commit b55f85c

Please sign in to comment.