Update FS tests

master
Jerome Wu 4 years ago
parent 13ab9cec70
commit 59392e96ff
  1. 4
      tests/FS.test.js

@ -16,7 +16,7 @@ describe('FS', async () => {
setTimeout(async () => {
const { data } = await worker.FS('readFile', [path]);
await worker.FS('unlink', [path]);
expect(data).to.be(SIMPLE_TEXT);
expect(data.toString()).to.be(text);
}, FS_WAIT);
});
}).timeout(TIMEOUT);
@ -30,7 +30,7 @@ describe('FS', async () => {
setTimeout(async () => {
const { data } = await worker.readText(path);
await worker.removeFile(path);
expect(data).to.be(SIMPLE_TEXT);
expect(data.toString()).to.be(text);
}, FS_WAIT);
});
}).timeout(TIMEOUT);

Loading…
Cancel
Save