소스 검색

fix wrong commit

Tienson Qin 3 년 전
부모
커밋
24e165ff7e
1개의 변경된 파일6개의 추가작업 그리고 4개의 파일을 삭제
  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)