diff --git a/web-client/src/presenter/computeds/trialSessionsHelper.test.ts b/web-client/src/presenter/computeds/trialSessionsHelper.test.ts index a5a0e53f42f..9b21f07de13 100644 --- a/web-client/src/presenter/computeds/trialSessionsHelper.test.ts +++ b/web-client/src/presenter/computeds/trialSessionsHelper.test.ts @@ -285,15 +285,21 @@ describe('trialSessionsHelper', () => { expect(trialSessionsOnly.length).toEqual(1); }); + // NOTE: This test passes, but I am unable to find when the userId for a judge would be set to unassigned it('should only show trial sessions who do not have a judge when the judge filter is "unassigned"', () => { trialSession1.judge = undefined; trialSession2.judge!.userId = '2'; trialSessionsPageState.trialSessions = [trialSession1, trialSession2]; - trialSessionsPageState.filters.judgeId = 'unassigned'; + trialSessionsPageState.filters.judges = { + 'd17b07dc-6455-447e-bea3-f91d12ac5a6a': { + name: 'Colvin', + userId: 'unassigned', + }, + }; const result = runCompute(trialSessionsHelper, { state: { - judges: [judgeUser], + judges: [], permissions: getUserPermissions(docketClerk1User), trialSessionsPage: trialSessionsPageState, }, @@ -310,7 +316,6 @@ describe('trialSessionsHelper', () => { it('should not filter trial sessions by judge when judge filter is All', () => { trialSessionsPageState.trialSessions = [trialSession1, trialSession2]; trialSessionsPageState.filters.judgeId = 'All'; - console.log('Trial Sessions: ', trialSessionsPageState.trialSessions); const result = runCompute(trialSessionsHelper, { state: { judges: [judgeUser, judgeColvin], @@ -318,7 +323,6 @@ describe('trialSessionsHelper', () => { trialSessionsPage: trialSessionsPageState, }, }); - console.log('TrialSessionRows: ', result.trialSessionRows); const trialSessionsOnly = result.trialSessionRows.filter(isTrialSessionRow);