feat(summary): send complete articles within user budget (#39)
This commit is contained in:
@ -8,8 +8,8 @@ afterEach(() => {
|
||||
|
||||
it('charge et sauvegarde les préférences du compte via GET et PUT /api/me/preferences', async () => {
|
||||
localStorage.setItem('token', 'user-token')
|
||||
const initial = { language: 'fr', ranking_mode: 'title' }
|
||||
const updated = { language: 'en' as const, ranking_mode: 'title_content' as const }
|
||||
const initial = { language: 'fr', ranking_mode: 'title', summary_prompt_token_budget: 250000 }
|
||||
const updated = { language: 'en' as const, ranking_mode: 'title_content' as const, summary_prompt_token_budget: 80000 }
|
||||
const fetchMock = vi.fn()
|
||||
.mockResolvedValueOnce(new Response(JSON.stringify({ data: initial }), { status: 200 }))
|
||||
.mockResolvedValueOnce(new Response(JSON.stringify({ data: updated }), { status: 200 }))
|
||||
|
||||
Reference in New Issue
Block a user