From 8454f52378b9410393262122c6920606e187e18f Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Fri, 12 Feb 2021 20:37:43 -0500 Subject: Move more data files (#1373) * Move deinflect.json * Move button.mp3 * Move fonts --- test/test-deinflector.js | 2 +- test/test-translator.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'test') 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 -- cgit v1.2.3