feat: modal windows

This commit is contained in:
2026-08-14 19:49:27 +07:00
parent 3d8b78ec52
commit 76f26430ba
13 changed files with 377 additions and 16 deletions

View File

@@ -68,7 +68,7 @@ describe('api client', () => {
access_token: 'a',
refresh_token: 'r',
expires_at: 1,
user: { username: 'u', telegram_id: null, referal_code: 'x' },
user: { username: 'u', telegram_id: null, referal_code: 'x', bonus_balance: 0 },
});
});
await api.login({ provider: 'credentials', username: 'u', password: 'p' });
@@ -102,7 +102,7 @@ describe('api client', () => {
return jsonResponse({ access_token: 'new', refresh_token: 'new-r', expires_at: 9999999999 });
}
if (calls === 1) return jsonResponse({ detail: 'expired' }, 401);
return jsonResponse({ username: 'u', telegram_id: null, referal_code: 'x' });
return jsonResponse({ username: 'u', telegram_id: null, referal_code: 'x', bonus_balance: 0 });
});
const me = await api.getMe();
expect(me.username).toBe('u');