Skip to content

Commit

Permalink
fix wrong commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tiensonqin committed Apr 2, 2022
1 parent c37b5bd commit 24e165f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions e2e-tests/basic.spec.ts
Expand Up @@ -88,19 +88,21 @@ test('create page and blocks, save to disk', async ({ page, graphDir }) => {

await page.waitForTimeout(2000) // wait for saving to disk

const contentOnDisk = fs.readFileSync(
const contentOnDisk = await fs.readFile(
path.join(graphDir, `pages/${pageTitle}.md`),
'utf8'
)

expect(contentOnDisk.trim()).toEqual(`
- this is my first bullet
- this is my second bullet
\t- this is my third bullet
\t- continue editing test
\tcontinue
- this is my third bullet
- continue editing test
continue
- test ok`.trim())
})


test('delete and backspace', async ({ page }) => {
await createRandomPage(page)

Expand Down

0 comments on commit 24e165f

Please sign in to comment.