From 50df652f331a24af5b8d4b62c1a9a9bcb0334d87 Mon Sep 17 00:00:00 2001 From: jeromewu Date: Fri, 20 Mar 2020 02:06:27 +0000 Subject: [PATCH] Rename removeText to removeFile --- src/createWorker.js | 4 ++-- tests/FS.test.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/createWorker.js b/src/createWorker.js index 83dd6e6..532d849 100644 --- a/src/createWorker.js +++ b/src/createWorker.js @@ -75,7 +75,7 @@ module.exports = (_options = {}) => { })) ); - const removeText = (path, jobId) => ( + const removeFile = (path, jobId) => ( startJob(createJob({ id: jobId, action: 'FS', @@ -185,7 +185,7 @@ module.exports = (_options = {}) => { load, writeText, readText, - removeText, + removeFile, FS, loadLanguage, initialize, diff --git a/tests/FS.test.js b/tests/FS.test.js index 6e99dc4..bc640ea 100644 --- a/tests/FS.test.js +++ b/tests/FS.test.js @@ -28,7 +28,7 @@ describe('FS', async () => { await worker.writeText(path, SIMPLE_TEXT); setTimeout(async () => { const { data } = await worker.readText(path); - await worker.removeText(path); + await worker.removeFile(path); expect(data).to.be(SIMPLE_TEXT); }, 200); });