Skip to content

Commit

Permalink
chore: add debug log to addWord function
Browse files Browse the repository at this point in the history
!nuf
  • Loading branch information
Miodec committed Nov 25, 2024
1 parent 1141051 commit 294847d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions frontend/src/ts/test/test-logic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -545,10 +545,13 @@ export async function addWord(): Promise<void> {
?.properties?.find((fp) => fp.startsWith("toPush:"));
const toPushCount = funboxToPush?.split(":")[1];
if (toPushCount !== undefined) bound = +toPushCount - 1;
if (
TestWords.words.length - TestInput.input.history.length > bound ||
areAllTestWordsGenerated()
) {

if (TestWords.words.length - TestInput.input.history.length > bound) {
console.debug("Not adding word, enough words already");
return;
}
if (areAllTestWordsGenerated()) {
console.debug("Not adding word, all words generated");
return;
}

Expand Down

0 comments on commit 294847d

Please sign in to comment.