diff --git a/test/main/services/team/TeamProvisioningService.test.ts b/test/main/services/team/TeamProvisioningService.test.ts index dc32c302..6553b523 100644 --- a/test/main/services/team/TeamProvisioningService.test.ts +++ b/test/main/services/team/TeamProvisioningService.test.ts @@ -637,6 +637,7 @@ describe('TeamProvisioningService', () => { await svc.getTeamAgentRuntimeSnapshot('runtime-team'); expect(listTmuxPaneRuntimeInfoForCurrentPlatform).not.toHaveBeenCalled(); + expect(listTmuxPanePidsForCurrentPlatform).not.toHaveBeenCalled(); }); it('exposes providerBackendId from the live run request when available', async () => { diff --git a/test/renderer/components/common/TokenUsageDisplay.test.ts b/test/renderer/components/common/TokenUsageDisplay.test.ts index d92420c2..a0e6fc52 100644 --- a/test/renderer/components/common/TokenUsageDisplay.test.ts +++ b/test/renderer/components/common/TokenUsageDisplay.test.ts @@ -54,10 +54,6 @@ async function flushReact(): Promise { await Promise.resolve(); } -function withoutNumberGroupSeparators(value: string | null | undefined): string { - return (value ?? '').replace(/[\s,\u00a0\u202f]/g, ''); -} - describe('TokenUsageDisplay', () => { afterEach(() => { document.body.innerHTML = ''; @@ -93,8 +89,9 @@ describe('TokenUsageDisplay', () => { }); const popover = document.querySelector('[role="tooltip"]'); + const expectedTotalTokens = new Intl.NumberFormat().format(2250); expect(popover).toBeTruthy(); - expect(withoutNumberGroupSeparators(popover?.textContent)).toContain('2250'); + expect(popover?.textContent).toContain(expectedTotalTokens); expect(popover?.textContent).toContain('500 (25.0% of prompt input)'); expect(popover?.textContent).not.toContain('of context');