Skip to content

Commit

Permalink
quantitative once more
Browse files Browse the repository at this point in the history
  • Loading branch information
AslanRules committed Jan 27, 2025
1 parent 7020a50 commit d1da32a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions convert/tests/convertConfigSAB.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ if (programType === 'DAB') {
} else if (programType === 'SAB') {
test('convertConfig: parse traits', () => {
const result = parseTraits(document, 'dummy', 1);
expect(Object.keys(result)).toHaveLength(6);
expect(Object.keys(result)).toHaveLength(7);
});

test('convertConfig: parse book collections', () => {
Expand All @@ -100,7 +100,7 @@ if (programType === 'DAB') {
expect(bc.languageCode).not.toBe('');
expect(bc.languageName).not.toBe('');

expect(Object.keys(bc.features)).toHaveLength(39);
expect(Object.keys(bc.features)).toHaveLength(40);

Check failure on line 103 in convert/tests/convertConfigSAB.test.ts

View workflow job for this annotation

GitHub Actions / test

convert/tests/convertConfigSAB.test.ts > convertConfig: parse book collections

AssertionError: expected [ 'show-scripture-refs', …(38) ] to have a length of 40 but got 39 - Expected + Received - 40 + 39 ❯ convert/tests/convertConfigSAB.test.ts:103:46

expect(bc.books).not.toHaveLength(0);
for (const bk in bc.books) {
Expand Down Expand Up @@ -196,7 +196,7 @@ if (programType === 'DAB') {

test('convertConfig: parse features', () => {
const result = parseFeatures(document, 1);
expect(Object.keys(result)).toHaveLength(135);
expect(Object.keys(result)).toHaveLength(137);
});

test('convertConfig: parse background images', () => {
Expand Down

0 comments on commit d1da32a

Please sign in to comment.