From 186a7096a4cd712e40d6a96fd58b974275f92c4b 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: Thu, 24 Oct 2024 15:09:43 -0400 Subject: [PATCH] remove logging statements --- packages/obsidian-testing-framework/src/util.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/obsidian-testing-framework/src/util.ts b/packages/obsidian-testing-framework/src/util.ts index 550ab51..2ed19a8 100644 --- a/packages/obsidian-testing-framework/src/util.ts +++ b/packages/obsidian-testing-framework/src/util.ts @@ -74,7 +74,6 @@ export async function assertLinesEqual( } const getFile = (file: string): TFile => { - console.log("gfbp", window.app.vault.getFileByPath, file) let f = window.app.vault.getFileByPath(file); if (!f) { throw new Error("File does not exist in vault."); @@ -99,11 +98,8 @@ export async function readFile( const fn = getFile.toString(); return normalizeEOL( await doWithApp(page, async (app, args) => { - console.log(args); - console.log(app.vault.getFileByPath) const gf = eval(`(${args.getFile})`); - console.log("file", gf); - const file = (eval(args.getFile))(args.path); + const file = gf(args.path); return await (args.cached ? app.vault.cachedRead(file) : app.vault.read(file)); }, {path, cached, getFile: fn}) ); @@ -129,7 +125,6 @@ export async function doWithApp( const cbStr = callback.toString(); return await page.evaluate(async ({__callback: cb, args}) => { const func = new Function("args", `return ((${cb}))(window.app, args)`) - console.log(func.toString()); return await func(args); }, {__callback: cbStr, args}); }