(fn)
| 7 | const {promisify} = require('promise-callbacks'); |
| 8 | |
| 9 | const 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 | |
| 14 | describe('Job', (it) => { |
| 15 | const redisUrl = process.env.BEE_QUEUE_TEST_REDIS || 'redis://localhost:6379'; |