diff --git a/test/monitor.test.js b/test/monitor.test.js index 25a6bb6..3192cf5 100644 --- a/test/monitor.test.js +++ b/test/monitor.test.js @@ -49,6 +49,7 @@ test('settleRun keeps running enter time and stamps exitedAt separately', () => assert.ok(run.exitedAt > run.stateEnteredAt) }) +test('labelsMatch any/all', () => { const job = { role: 'worker', task: 'theory', owner: 'alice' } assert.equal(labelsMatch(job, { role: 'worker', task: 'theory' }, 'all'), true) assert.equal(labelsMatch(job, { role: 'worker', owner: 'bob' }, 'all'), false)