From 810f08949a8405298755bc77af9a1f6cfcbe9980 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=99=E2=97=A6=20The=20Tablet=20=E2=9D=80=20GamerGirla?= =?UTF-8?q?ndCo=20=E2=97=A6=E2=9D=A7?= Date: Wed, 23 Oct 2024 03:10:45 -0400 Subject: [PATCH] remove console.logs --- packages/obsidian-testing-framework/src/index.ts | 1 - packages/obsidian-testing-framework/src/util.ts | 2 -- 2 files changed, 3 deletions(-) diff --git a/packages/obsidian-testing-framework/src/index.ts b/packages/obsidian-testing-framework/src/index.ts index 92ef1ca..0a72835 100644 --- a/packages/obsidian-testing-framework/src/index.ts +++ b/packages/obsidian-testing-framework/src/index.ts @@ -35,7 +35,6 @@ const obsidianTestFixtures: Fixtures = { let mainFile = path.join(tmp.tmpdir, "obsidian"); let electronFile = path.join(tmp.tmpdir, "electron"); const packageJsonFile = path.join(tmp.tmpdir, "obsidian", "package.json"); - console.log("hello", getExe(), vault, mainFile); try { rmSync(mainFile, { recursive: true }); rmSync(electronFile, { recursive: true }); diff --git a/packages/obsidian-testing-framework/src/util.ts b/packages/obsidian-testing-framework/src/util.ts index d3e5371..a36ed44 100644 --- a/packages/obsidian-testing-framework/src/util.ts +++ b/packages/obsidian-testing-framework/src/util.ts @@ -75,9 +75,7 @@ export async function doWithApp( callback: (a: App) => T | Promise ): Promise { const cbStr = callback.toString(); - await page.exposeFunction("__callback", callback) return await page.evaluate(async (cb) => { - console.log("bye", Object.keys(app)); const func = new Function(`return (${cb})(window.app)`) return await func(); }, cbStr);