diff --git a/GitWeb/test/collaboratorStore.test.ts b/GitWeb/test/collaboratorStore.test.ts index 0ad4d0a..477c9d4 100644 --- a/GitWeb/test/collaboratorStore.test.ts +++ b/GitWeb/test/collaboratorStore.test.ts @@ -9,6 +9,9 @@ const github = { cancelRepositoryInvitation: vi.fn() } vi.stubGlobal('window', { api: { github } }) +// The store picks its language from the OS, and the assertions below are in +// pt-BR: without this the suite only passes on a machine set to Portuguese. +vi.stubGlobal('navigator', { languages: ['pt-BR'] }) const { usePullRequestStore } = await import('../src/renderer/src/store/pullRequestStore') const { sessionKeyOf, useCollaboratorStore } = await import('../src/renderer/src/store/collaboratorStore')