Use ILogService in TaskQueue

This commit is contained in:
Daniel Imms
2026-02-05 06:40:50 -08:00
parent 5741e450e6
commit 2e776c0820
17 changed files with 77 additions and 50 deletions
+3 -2
View File
@@ -5,6 +5,7 @@
import { assert } from 'chai';
import { SortedList } from 'common/SortedList';
import { MockLogService } from 'common/TestUtils.test';
const deepStrictEqual = assert.deepStrictEqual;
@@ -15,7 +16,7 @@ describe('SortedList', () => {
}
beforeEach(() => {
list = new SortedList<number>(e => e);
list = new SortedList<number>(e => e, new MockLogService());
});
describe('insert', () => {
@@ -90,7 +91,7 @@ describe('SortedList', () => {
assertList([]);
});
it('custom key', () => {
const customList = new SortedList<{ key: number }>(e => e.key);
const customList = new SortedList<{ key: number }>(e => e.key, new MockLogService());
customList.insert({ key: 5 });
customList.insert({ key: 2 });
customList.insert({ key: 10 });