Reformat code
This commit is contained in:
@ -30,6 +30,8 @@ describe('Statistics', function() {
|
||||
for (let i = 0; i < 120; ++i) {
|
||||
statistics.incrementAction(baseTime + 3600 * i);
|
||||
}
|
||||
expect(Object.keys(statistics.getActionStatistics())).to.has.lengthOf(Statistics.keepRecords);
|
||||
expect(Object.keys(statistics.getActionStatistics())).to.has.lengthOf(
|
||||
Statistics.keepRecords
|
||||
);
|
||||
});
|
||||
});
|
||||
|
@ -22,7 +22,10 @@ describe('Task Queue', function() {
|
||||
});
|
||||
|
||||
it('Can remove task by id', function() {
|
||||
const provider = new ArrayTaskProvider([new Task('id1', 1, 'task1', {}), new Task('id2', 2, 'task2', {})]);
|
||||
const provider = new ArrayTaskProvider([
|
||||
new Task('id1', 1, 'task1', {}),
|
||||
new Task('id2', 2, 'task2', {}),
|
||||
]);
|
||||
const queue = new TaskQueue(provider, new NullLogger());
|
||||
queue.remove(t => t.id === 'id1');
|
||||
const tasks = provider.getTasks();
|
||||
|
Reference in New Issue
Block a user