diff options
Diffstat (limited to 'tools/sw-push-quota.test.js')
| -rw-r--r-- | tools/sw-push-quota.test.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/sw-push-quota.test.js b/tools/sw-push-quota.test.js index 049dc1f..cf4a7bf 100644 --- a/tools/sw-push-quota.test.js +++ b/tools/sw-push-quota.test.js @@ -6,7 +6,7 @@ import { test, expect, mock } from 'bun:test'; let respond = async () => true; mock.module('../src/nwc-respond.js', () => ({ respondFromBg: (...a) => respond(...a), tendRenewals: async () => {}, tendLnPays: async () => [] })); mock.module('../src/nwc-lock.js', () => ({ withRequestLock: async (_id, fn) => fn(), withWorkLock: async (fn) => fn() })); -mock.module('../src/nwc-bg.js', () => ({ appendBgLog: async () => {} })); +mock.module('../src/nwc-bg.js', () => ({ appendBgLog: async () => {}, takeLease: async () => ({ waited: 0, release: async () => {} }) })); mock.module('../src/bg-autowithdraw.js', () => ({ bgAutoWithdraw: async () => {} })); mock.module('../src/dm-inbox.js', () => ({ allInboxes: async () => [{ muted: ['m'.repeat(64)] }], |
