summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-04-19 10:57:33 -0400
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-04-19 10:57:33 -0400
commit99c1a6a6bc0ce55eb2f20703a7f7f69c4bcefd9d (patch)
tree3c101c3dbf38dfb26bfb74bb0a38daedc8166811 /test
parentba68616d809800aa40165a8913e55d6fe05a5502 (diff)
Change some test variables using 'source' instead of 'content'
Diffstat (limited to 'test')
-rw-r--r--test/yomichan-test.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/yomichan-test.js b/test/yomichan-test.js
index 0b340abb..b4f5ac7c 100644
--- a/test/yomichan-test.js
+++ b/test/yomichan-test.js
@@ -39,15 +39,15 @@ function createTestDictionaryArchive(dictionary, dictionaryName) {
for (const fileName of fileNames) {
if (/\.json$/.test(fileName)) {
- const source = fs.readFileSync(path.join(dictionaryDirectory, fileName), {encoding: 'utf8'});
- const json = JSON.parse(source);
+ const content = fs.readFileSync(path.join(dictionaryDirectory, fileName), {encoding: 'utf8'});
+ const json = JSON.parse(content);
if (fileName === 'index.json' && typeof dictionaryName === 'string') {
json.title = dictionaryName;
}
archive.file(fileName, JSON.stringify(json, null, 0));
} else {
- const source = fs.readFileSync(path.join(dictionaryDirectory, fileName), {encoding: null});
- archive.file(fileName, source);
+ const content = fs.readFileSync(path.join(dictionaryDirectory, fileName), {encoding: null});
+ archive.file(fileName, content);
}
}