mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Tests: remove possible race condition
Simplify JP2 quality size check
This commit is contained in:
@@ -68,10 +68,13 @@ describe('Utilities', function () {
|
||||
});
|
||||
|
||||
describe('Counters', function () {
|
||||
it('Have zero value at rest', function () {
|
||||
const counters = sharp.counters();
|
||||
assert.strictEqual(0, counters.queue);
|
||||
assert.strictEqual(0, counters.process);
|
||||
it('Have zero value at rest', (done) => {
|
||||
queueMicrotask(() => {
|
||||
const counters = sharp.counters();
|
||||
assert.strictEqual(0, counters.queue);
|
||||
assert.strictEqual(0, counters.process);
|
||||
done();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user