-
- it('Choose a random worker', () => {
- const input = new Map()
- input.set(1, 1)
- input.set(2, 2)
- input.set(3, 3)
- const worker = randomWorker(input)
- expect(worker).toBeTruthy()
- expect(Array.from(input.keys()).includes(worker)).toBeTruthy()
- })