From 4bc0031f587f62f810a5af0fdb241f413bd3821f Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 18 Feb 2025 13:07:11 -0500 Subject: [PATCH] chore: add test helper to activitypub file --- src/activitypub/helpers.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/activitypub/helpers.js b/src/activitypub/helpers.js index dd0b0c05ff..5a50e2e8ed 100644 --- a/src/activitypub/helpers.js +++ b/src/activitypub/helpers.js @@ -28,6 +28,16 @@ const sha256 = payload => crypto.createHash('sha256').update(payload).digest('he const Helpers = module.exports; +Helpers._test = (method, args) => { + // because I am lazy and I probably wrote some variant of this below code 1000 times already + setTimeout(async () => { + console.log(await method.apply(method, args)); + }, 2500); +}; +// process.nextTick(() => { +// Helpers._test(activitypub.notes.assert, [1, `https://`]); +// }); + let _lastLog; Helpers.log = (message) => { if (!message) {