aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-02-12 20:37:43 -0500
committerGitHub <noreply@github.com>2021-02-12 20:37:43 -0500
commit8454f52378b9410393262122c6920606e187e18f (patch)
treeaee59787dc825fcb47ae06a404be33cf6521f774 /test
parentf70464e5f36e342c345d38823d5a7e4712df8df0 (diff)
Move more data files (#1373)
* Move deinflect.json * Move button.mp3 * Move fonts
Diffstat (limited to 'test')
-rw-r--r--test/test-deinflector.js2
-rw-r--r--test/test-translator.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/test-deinflector.js b/test/test-deinflector.js
index 6ab00a94..dbc1f7e2 100644
--- a/test/test-deinflector.js
+++ b/test/test-deinflector.js
@@ -884,7 +884,7 @@ function testDeinflections() {
vm.execute(['bg/js/deinflector.js']);
const [Deinflector] = vm.get(['Deinflector']);
- const deinflectionReasions = JSON.parse(fs.readFileSync(path.join(__dirname, '..', 'ext', 'bg/lang/deinflect.json')));
+ const deinflectionReasions = JSON.parse(fs.readFileSync(path.join(__dirname, '..', 'ext', 'data/deinflect.json')));
const deinflector = new Deinflector(deinflectionReasions);
for (const {valid, tests} of data) {
diff --git a/test/test-translator.js b/test/test-translator.js
index cee7fe16..778a7ce1 100644
--- a/test/test-translator.js
+++ b/test/test-translator.js
@@ -81,7 +81,7 @@ async function createVM() {
// Setup translator
const japaneseUtil = new JapaneseUtil(null);
const translator = new Translator({japaneseUtil, database: dictionaryDatabase});
- const deinflectionReasions = JSON.parse(fs.readFileSync(path.join(__dirname, '..', 'ext', 'bg/lang/deinflect.json')));
+ const deinflectionReasions = JSON.parse(fs.readFileSync(path.join(__dirname, '..', 'ext', 'data/deinflect.json')));
translator.prepare(deinflectionReasions);
// Done