From aa0566b8ca2aae8bc64f30e6a844cc8683477f5a Mon Sep 17 00:00:00 2001 From: zhoufeng1989 Date: Sun, 26 Aug 2018 21:15:20 +1200 Subject: [PATCH] Update test cases for export storage, check content of exported notes. --- tests/dataApi/exportStorage-test.js | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/dataApi/exportStorage-test.js b/tests/dataApi/exportStorage-test.js index 1ee98328..e5594329 100644 --- a/tests/dataApi/exportStorage-test.js +++ b/tests/dataApi/exportStorage-test.js @@ -37,6 +37,7 @@ test.serial('Export a storage', t => { const noteDir = path.join(exportDir, folderKeyToName[note.folder], `${note.title}.md`) if (note.type === 'MARKDOWN_NOTE') { t.true(fs.existsSync(noteDir)) + t.is(fs.readFileSync(noteDir, 'utf8'), note.content) } else if (note.type === 'SNIPPET_NOTE') { t.false(fs.existsSync(noteDir)) }