mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-03-02 21:45:14 +01:00
chore(utils): introduce new test for PEPE2.0 token
This commit is contained in:
@@ -29,6 +29,14 @@ describe('extractUrlsFromText', () => {
|
||||
expect(urls).toEqual([]);
|
||||
});
|
||||
|
||||
it('should not match invalid URLs with version in token name', () => {
|
||||
const text = 'PEPE2.0';
|
||||
const { textParts, urls } = extractUrlsFromText(text);
|
||||
|
||||
expect(textParts).toEqual([text]);
|
||||
expect(urls).toEqual([]);
|
||||
});
|
||||
|
||||
it('should handle text with multiple URLs related to Ethereum tokens correctly', () => {
|
||||
const text =
|
||||
'Visit https://etherscan.io, http://mycrypto.com, and www.ethereum.org to claim your tokens.';
|
||||
|
||||
Reference in New Issue
Block a user