Skip to content

Commit

Permalink
remove console.log from test file
Browse files Browse the repository at this point in the history
  • Loading branch information
rinrub committed Feb 27, 2024
1 parent 8e694c0 commit 6785fb6
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/reducers/__tests__/repeatableBoolean-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,14 @@ describe('Given a questionnaire with multiple repeatable booleans', () => {

it('Then repeated item should have an answer with 3 items', () => {
const repeatedResponseItem = getResponseItem('1.0.4', newState, pathify('1', '1.0^1', '1.0.4')) as QuestionnaireResponseItem;
console.log('newState', JSON.stringify(newState, null, 2));

console.log('repeatedResponseItem', repeatedResponseItem);
if (!repeatedResponseItem) return fail();

if (!repeatedResponseItem.answer) return fail();

expect(repeatedResponseItem.answer.length).toBe(1);

const answer = repeatedResponseItem.answer[0];
console.log('answer', answer);
if (!answer || !answer.item) return fail();

expect(answer.item.length).toBe(3);
Expand Down

0 comments on commit 6785fb6

Please sign in to comment.