Tests: assertSimilar support for Promise and callback

This commit is contained in:
Lovell Fuller
2024-07-20 15:10:04 +01:00
parent 2672de2480
commit f128ebdbd4
2 changed files with 37 additions and 45 deletions

View File

@@ -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 () {