From 08c244ab9d0d4e254bd87afdf0712274179a23a8 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 21:32:24 -0400 Subject: [PATCH] fix incorrect readme example --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1182737..4987f5a 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ which is an Electron app under the hood. ### basic usage ```ts -import {test} from "obsidian-testing-framework"; +import {test} from "obsidian-testing-library"; test('obsidian app url', async ({ page }) => { console.log(page.url()); expect(/obsidian\.md/i.test(page.url())).toBeTruthy() @@ -20,10 +20,10 @@ test('obsidian app url', async ({ page }) => { ```ts test("idk", async({page}) => { console.log("idk") - let tfile = await doWithApp(page,async (app) => { + let tfile = await doWithApp(page, async (app) => { return app.metadataCache.getFirstLinkpathDest("Welcome", "/"); }); - expect(what.basename).toEqual("Welcome") + expect(tfile.basename).toEqual("Welcome") }) ```