diff options
Diffstat (limited to 'src/helpers/url-helpers.test.ts')
-rw-r--r-- | src/helpers/url-helpers.test.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/helpers/url-helpers.test.ts b/src/helpers/url-helpers.test.ts index 5ea6fa1a8..e6036893e 100644 --- a/src/helpers/url-helpers.test.ts +++ b/src/helpers/url-helpers.test.ts | |||
@@ -73,6 +73,9 @@ describe('url_helpers', () => { | |||
73 | it('handles string starting with http://', () => { | 73 | it('handles string starting with http://', () => { |
74 | expect(url_helpers.fixUrl('http://some/random/url')).toEqual('http://some/random/url'); | 74 | expect(url_helpers.fixUrl('http://some/random/url')).toEqual('http://some/random/url'); |
75 | expect(url_helpers.fixUrl('http://some//random//url')).toEqual('http://some/random/url'); | 75 | expect(url_helpers.fixUrl('http://some//random//url')).toEqual('http://some/random/url'); |
76 | |||
77 | const gmailEmbeddedUrl = 'https://www.google.com/url?q=https://github.com/ferdium/ferdium-app/issues/87&source=gmail'; | ||
78 | expect(url_helpers.fixUrl(gmailEmbeddedUrl)).toEqual(gmailEmbeddedUrl); // it should NOT remove the double-slash from the embedded url in the query string | ||
76 | }); | 79 | }); |
77 | 80 | ||
78 | it('handles string starting with https://', () => { | 81 | it('handles string starting with https://', () => { |