fix incorrect readme example

This commit is contained in:
parent be6447d3ce
commit 08c244ab9d
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C

@ -10,7 +10,7 @@ which is an Electron app under the hood.
### basic usage ### basic usage
```ts ```ts
import {test} from "obsidian-testing-framework"; import {test} from "obsidian-testing-library";
test('obsidian app url', async ({ page }) => { test('obsidian app url', async ({ page }) => {
console.log(page.url()); console.log(page.url());
expect(/obsidian\.md/i.test(page.url())).toBeTruthy() expect(/obsidian\.md/i.test(page.url())).toBeTruthy()
@ -23,7 +23,7 @@ test("idk", async({page}) => {
let tfile = await doWithApp(page, async (app) => { let tfile = await doWithApp(page, async (app) => {
return app.metadataCache.getFirstLinkpathDest("Welcome", "/"); return app.metadataCache.getFirstLinkpathDest("Welcome", "/");
}); });
expect(what.basename).toEqual("Welcome") expect(tfile.basename).toEqual("Welcome")
}) })
``` ```