How to use randomstring.generate:
GitHub: toa-io/comq
161 162 163 164 165 166 167 168 169 170
topology.acknowledgments = true channel = await create(connection, topology) chan = await getCreatedChannel() const consumer = /** @type {Function} */ jest.fn(async () => generate()) await channel.consume(queue, consumer) const callback = chan.consume.mock.calls[0][1]