aboutsummaryrefslogtreecommitdiff
path: root/test/test-dictionary.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/test-dictionary.js')
-rw-r--r--test/test-dictionary.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/test/test-dictionary.js b/test/test-dictionary.js
index 2ca0c652..e7db75eb 100644
--- a/test/test-dictionary.js
+++ b/test/test-dictionary.js
@@ -15,8 +15,15 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-const {createTestDictionaryArchive} = require('./yomichan-test');
-const dictionaryValidate = require('./dictionary-validate');
+const path = require('path');
+const {createDictionaryArchive} = require('../dev/util');
+const dictionaryValidate = require('../dev/dictionary-validate');
+
+
+function createTestDictionaryArchive(dictionary, dictionaryName) {
+ const dictionaryDirectory = path.join(__dirname, 'data', 'dictionaries', dictionary);
+ return createDictionaryArchive(dictionaryDirectory, dictionaryName);
+}
async function main() {