fix incorrect readme example
This commit is contained in:
parent
be6447d3ce
commit
08c244ab9d
@ -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()
|
||||
@ -23,7 +23,7 @@ test("idk", async({page}) => {
|
||||
let tfile = await doWithApp(page, async (app) => {
|
||||
return app.metadataCache.getFirstLinkpathDest("Welcome", "/");
|
||||
});
|
||||
expect(what.basename).toEqual("Welcome")
|
||||
expect(tfile.basename).toEqual("Welcome")
|
||||
})
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user