chore: fix broken telegram links
CI / changes (pull_request) Successful in 3s
CI / unit (pull_request) Successful in 11s
CI / integration (pull_request) Successful in 21s
CI / ui (pull_request) Successful in 1m14s
CI / conformance (pull_request) Successful in 10s
CI / gate (pull_request) Successful in 0s
CI / deploy (pull_request) Successful in 2m7s
CI / changes (pull_request) Successful in 3s
CI / unit (pull_request) Successful in 11s
CI / integration (pull_request) Successful in 21s
CI / ui (pull_request) Successful in 1m14s
CI / conformance (pull_request) Successful in 10s
CI / gate (pull_request) Successful in 0s
CI / deploy (pull_request) Successful in 2m7s
This commit is contained in:
@@ -32,8 +32,8 @@ describe('shareLink', () => {
|
||||
});
|
||||
|
||||
it('wraps a payload in a startapp link', () => {
|
||||
vi.stubEnv('VITE_TELEGRAM_LINK', 'https://t.me/bot/app');
|
||||
expect(shareLink('f123456')).toBe('https://t.me/bot/app?startapp=f123456');
|
||||
vi.stubEnv('VITE_TELEGRAM_LINK', 'https://telegram.me/bot/app');
|
||||
expect(shareLink('f123456')).toBe('https://telegram.me/bot/app?startapp=f123456');
|
||||
});
|
||||
});
|
||||
|
||||
@@ -60,7 +60,7 @@ describe('botUsername', () => {
|
||||
});
|
||||
|
||||
it('extracts the bot handle from the Mini App link', () => {
|
||||
vi.stubEnv('VITE_TELEGRAM_LINK', 'https://t.me/bot/app');
|
||||
vi.stubEnv('VITE_TELEGRAM_LINK', 'https://telegram.me/bot/app');
|
||||
expect(botUsername()).toBe('bot');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user