fix failed tests

This commit is contained in:
root
2026-06-10 01:17:09 -04:00
parent f1fff38400
commit f98ac2c4fa
6 changed files with 42 additions and 15 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ describe('dashboard apiFetch', () => {
const { apiFetch } = await import('./api')
await expect(apiFetch('/team')).resolves.toEqual({ ok: true })
expect(fetchMock).toHaveBeenCalledWith('/dashboard/api/v1/team', expect.objectContaining({
expect(fetchMock).toHaveBeenCalledWith(expect.stringMatching(/\/api\/v1\/team$/), expect.objectContaining({
credentials: 'include',
headers: expect.objectContaining({
'Content-Type': 'application/json',