aboutsummaryrefslogtreecommitdiff
path: root/test/test-database.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-09-07 11:12:58 -0400
committerGitHub <noreply@github.com>2021-09-07 11:12:58 -0400
commitac12b5093906e3a09724f96fee0c1a5141e52d3b (patch)
treeb7362890ecfd176e3de1e0f6501332eada450bba /test/test-database.js
parentc91831a81722345ef7b4d20bd87c855903a7bca7 (diff)
Dictionary import count details (#1935)
* Store count information when importing a dictionary * Add importDate * Update property ordering * Update tests * Update importDate
Diffstat (limited to 'test/test-database.js')
-rw-r--r--test/test-database.js12
1 files changed, 11 insertions, 1 deletions
diff --git a/test/test-database.js b/test/test-database.js
index a87a3f72..c24dedbd 100644
--- a/test/test-database.js
+++ b/test/test-database.js
@@ -147,7 +147,16 @@ async function testDatabase1() {
revision: 'test',
sequenced: true,
version: 3,
- prefixWildcardsSupported: true
+ importDate: 0,
+ prefixWildcardsSupported: true,
+ counts: {
+ kanji: {total: 2},
+ kanjiMeta: {total: 2, freq: 2},
+ media: {total: 4},
+ tagMeta: {total: 15},
+ termMeta: {total: 16, freq: 9, pitch: 7},
+ terms: {total: 20}
+ }
};
// Import data
@@ -158,6 +167,7 @@ async function testDatabase1() {
testDictionarySource,
{prefixWildcardsSupported: true}
);
+ expectedSummary.importDate = result.importDate;
vm.assert.deepStrictEqual(errors, []);
vm.assert.deepStrictEqual(result, expectedSummary);
assert.ok(progressEvent);