Browse Source

Update FS tests

pull/486/head
Jerome Wu 4 years ago
parent
commit
59392e96ff
  1. 4
      tests/FS.test.js

4
tests/FS.test.js

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

Loading…
Cancel
Save