mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Tests: assertSimilar support for Promise and callback
This commit is contained in:
@@ -122,10 +122,7 @@ describe('Blur', function () {
|
||||
.toBuffer();
|
||||
|
||||
assert.notDeepEqual(approximate, integer);
|
||||
|
||||
await new Promise(resolve => {
|
||||
fixtures.assertSimilar(fixtures.expected('blur-10.jpg'), approximate, resolve);
|
||||
});
|
||||
await fixtures.assertSimilar(fixtures.expected('blur-10.jpg'), approximate);
|
||||
});
|
||||
|
||||
it('options.sigma is required if options object is passed', function () {
|
||||
|
||||
Reference in New Issue
Block a user