Add and fix tests

This commit is contained in:
Cooldude2606 committed 2024-11-13 22:17:27 +00:00
1 parent 81444cc447
commit 3850558d49
8 files changed
+60 -15

No files matched your search

+10 -1
View File
@@ -17,7 +17,16 @@ describe("host/src/export", function() {
it("returns a flattened mapping with locale definitions", async function() {
let locale = await _exportLocale(testServer, new Map(), ["base"], "en");
assert.deepEqual(locale, new Map([["test.key-a", "1"], ["test.key-b", "2"]]));
assert.deepEqual(locale, new Map([
["test.core-a", "1"], ["test.core-b", "2"],
["test.base-a", "1"], ["test.base-b", "2"],
]));
});
it("returns a filtered locale definitions based on mod order", async function() {
let locale = await _exportLocale(testServer, new Map(), [], "en");
assert.deepEqual(locale, new Map([
["test.core-a", "1"], ["test.core-b", "2"],
]));
});
});
});