Browse Source

fix wrong commit

Tienson Qin 3 years ago
parent
commit
24e165ff7e
1 changed files with 6 additions and 4 deletions
  1. 6 4
      e2e-tests/basic.spec.ts

+ 6 - 4
e2e-tests/basic.spec.ts

@@ -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)