How to use randomstring

Comprehensive randomstring code examples:

How to use randomstring.generate:

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]