mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
fix: make sure all tests pass
This commit is contained in:
@@ -71,7 +71,7 @@ async function downloadFile(downloadActionSelector, encoding) {
|
||||
return new Promise(async (resolve) => {
|
||||
page.on("download", async (download) => {
|
||||
const path = await download.path();
|
||||
resolve(fs.readFileSync(path, { encoding }).toString());
|
||||
resolve(fs.readFileSync(path, { encoding }));
|
||||
});
|
||||
await page.waitForSelector(downloadActionSelector);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user