From 1b31c9cee4dd9042141f042d3f776285eee5f163 Mon Sep 17 00:00:00 2001 From: krishna2323 Date: Tue, 22 Oct 2024 21:44:09 +0530 Subject: [PATCH] minor fix. Signed-off-by: krishna2323 --- __tests__/Str-test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__tests__/Str-test.js b/__tests__/Str-test.js index 51f68aa6..1762ed2d 100644 --- a/__tests__/Str-test.js +++ b/__tests__/Str-test.js @@ -104,7 +104,7 @@ describe('Str.sanitizeURL', () => { expect(Str.sanitizeURL('https://GOOgle.com')).toBe('https://google.com'); +expect(Str.sanitizeURL('FOO.com/blah_BLAH', 'http')).toBe('http://foo.com/blah_BLAH'); +expect(Str.sanitizeURL('example.com', 'http')).toBe('http://example.com'); - expect(Str.sanitizeURL('https://example.com', 'http')).toBe('http://example.com'); + expect(Str.sanitizeURL('https://example.com', 'http')).toBe('https://example.com'); expect(Str.sanitizeURL('http://FOO.com/blah_BLAH')).toBe('http://foo.com/blah_BLAH'); expect(Str.sanitizeURL('HTtp://FOO.com/blah_BLAH')).toBe('http://foo.com/blah_BLAH'); });