feat: modal windows
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user