MCPcopy Index your code
hub / github.com/bee-queue/bee-queue / withCallback

Function withCallback

test/job-test.js:9–12  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

7const {promisify} = require('promise-callbacks');
8
9const withCallback = (fn) => async (t) => {
10 await promisify(fn)(t);
11 t.pass(); // There must be at least one passing assertion for the test to pass
12};
13
14describe('Job', (it) => {
15 const redisUrl = process.env.BEE_QUEUE_TEST_REDIS || 'redis://localhost:6379';

Callers 1

job-test.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected