Skip to content

Commit

Permalink
Fix: update statistics tests because the length of the dictionary arr…
Browse files Browse the repository at this point in the history
…ay has changed
  • Loading branch information
hepabolu committed Oct 1, 2024
1 parent 0729cdc commit 7d5a260
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/lib/statistics.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ describe('Test class Statistics', () => {
const result = me.__calculateDictionaryStats();
expect(result).toBeDefined();
expect(result).toEqual({
numWordsTotal: 1259,
numWordsTotal: 1271,
numWordsFiltered: 0,
percentWordsAvailable: 0,
filterMinLength: 0,
Expand All @@ -176,9 +176,9 @@ describe('Test class Statistics', () => {
const result = me.__calculateDictionaryStats();
expect(result).toBeDefined();
expect(result).toEqual({
numWordsTotal: 1259,
numWordsTotal: 1271,
numWordsFiltered: 1194,
percentWordsAvailable: 95,
percentWordsAvailable: 94,
filterMinLength: 4,
filterMaxLength: 8,
containsAccents: false,
Expand All @@ -203,7 +203,7 @@ describe('Test class Statistics', () => {
const result = me.__calculateDictionaryStats();
expect(result).toBeDefined();
expect(result).toEqual({
numWordsTotal: 1259,
numWordsTotal: 1271,
numWordsFiltered: 0,
percentWordsAvailable: 0,
filterMinLength: 0,
Expand Down Expand Up @@ -545,9 +545,9 @@ describe('Test class Statistics', () => {
const expected = {
dictionary: {
source: '',
numWordsTotal: 1259,
numWordsTotal: 1271,
numWordsFiltered: 1194,
percentWordsAvailable: 95,
percentWordsAvailable: 94,
filterMinLength: 4,
filterMaxLength: 8,
containsAccents: false,
Expand Down

0 comments on commit 7d5a260

Please sign in to comment.