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 d894236 commit 7975a6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions __tests__/greek-highlighting-helpers.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ function generateTest(fileName) {
const verseObjectsMap = new Map();
let ref = `${chapter}:${verse}`;
verseObjectsMap.set(ref, verseObjects);
let selections = selectionsFromQuoteAndVerseObjects({ quote, verseObjectsMap, occurrence });
selections = selections.get(ref);
const selections_ = selectionsFromQuoteAndVerseObjects({ quote, verseObjectsMap, occurrence });
const selections = selections_.get(ref) || [];

// log details to console if there is a miscompare of data
if (!deepEqual(selections, expected)) {
Expand Down

0 comments on commit 7975a6d

Please sign in to comment.