diff options
author | Stephen Kraus <8003332+stephenmk@users.noreply.github.com> | 2023-12-22 19:17:17 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-23 01:17:17 +0000 |
commit | 93cdbe4b718f9f7a2cd0d6efc545ec51d049812f (patch) | |
tree | fd5026b3ed4432a98d361063e13084139edb4e81 /test/database.test.js | |
parent | c18141a09b519a8ea650874aa09c06d7fa4fb98d (diff) |
Add support for alt attribute on structured content images (#359)
* Add support for alt attribute on structured content images
* Add new `alt` property for structured content images
* Update test script with new media file count
---------
Co-authored-by: stephenmk <stephenmk@users.noreply.github.com>
Diffstat (limited to 'test/database.test.js')
-rw-r--r-- | test/database.test.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/database.test.js b/test/database.test.js index 702de9f8..86c69a41 100644 --- a/test/database.test.js +++ b/test/database.test.js @@ -163,7 +163,7 @@ async function testDatabase1() { counts: { kanji: {total: 2}, kanjiMeta: {total: 6, freq: 6}, - media: {total: 4}, + media: {total: 6}, tagMeta: {total: 15}, termMeta: {total: 38, freq: 31, pitch: 7}, terms: {total: 21} @@ -193,13 +193,13 @@ async function testDatabase1() { true ); expect(counts).toStrictEqual({ - counts: [{kanji: 2, kanjiMeta: 6, terms: 21, termMeta: 38, tagMeta: 15, media: 4}], - total: {kanji: 2, kanjiMeta: 6, terms: 21, termMeta: 38, tagMeta: 15, media: 4} + counts: [{kanji: 2, kanjiMeta: 6, terms: 21, termMeta: 38, tagMeta: 15, media: 6}], + total: {kanji: 2, kanjiMeta: 6, terms: 21, termMeta: 38, tagMeta: 15, media: 6} }); // Test find* functions await testFindTermsBulkTest1(dictionaryDatabase, titles); - await testTindTermsExactBulk1(dictionaryDatabase, titles); + await testFindTermsExactBulk1(dictionaryDatabase, titles); await testFindTermsBySequenceBulk1(dictionaryDatabase, title); await testFindTermMetaBulk1(dictionaryDatabase, titles); await testFindKanjiBulk1(dictionaryDatabase, titles); @@ -335,8 +335,8 @@ async function testFindTermsBulkTest1(database, titles) { * @param {DictionaryDatabase} database * @param {import('dictionary-database').DictionarySet} titles */ -async function testTindTermsExactBulk1(database, titles) { - test('TindTermsExactBulk1', async () => { +async function testFindTermsExactBulk1(database, titles) { + test('FindTermsExactBulk1', async () => { /** @type {{inputs: {termList: {term: string, reading: string}[]}[], expectedResults: {total: number, terms: [key: string, count: number][], readings: [key: string, count: number][]}}[]} */ const data = [ { |