Skip to content

Commit

Permalink
fixing unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
blm committed Nov 29, 2023
1 parent 7975a6d commit 43011eb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion __tests__/greek-highlighting-helpers.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import deepEqual from 'deep-equal';
import ugnt_tit from './fixtures/books/ugnt_tit.js';
import ugnt_3jn from './fixtures/books/ugnt_3jn.js';
import ugnt_php from './fixtures/books/ugnt_php.js';
import { flattenVerseObjects } from "../src/core";

describe('selectionHelpers.selectionsFromQuoteAndVerseObjects PHP', () => {
it('should have all words highlighted PHP 2:1', () => {
Expand Down Expand Up @@ -146,9 +147,10 @@ function generateTest(fileName) {
}

const { verseObjects } = books[bookName].chapters[chapter][verse];
const _verseObjects = flattenVerseObjects(verseObjects);
const verseObjectsMap = new Map();
let ref = `${chapter}:${verse}`;
verseObjectsMap.set(ref, verseObjects);
verseObjectsMap.set(ref, _verseObjects);
const selections_ = selectionsFromQuoteAndVerseObjects({ quote, verseObjectsMap, occurrence });
const selections = selections_.get(ref) || [];

Expand Down

0 comments on commit 43011eb

Please sign in to comment.