mirror of
https://github.com/tenrok/axios.git
synced 2026-06-14 18:42:33 +03:00
* fix(sec): cve-2024-39338 (#6539) * fix(sec): fix test
This commit is contained in:
@@ -12,8 +12,8 @@ describe('helpers::isAbsoluteURL', function () {
|
||||
expect(isAbsoluteURL('!valid://example.com/')).toBe(false);
|
||||
});
|
||||
|
||||
it('should return false if URL is protocol-relative', function () {
|
||||
expect(isAbsoluteURL('//example.com/')).toBe(false);
|
||||
it('should return true if URL is protocol-relative', function () {
|
||||
expect(isAbsoluteURL('//example.com/')).toBe(true);
|
||||
});
|
||||
|
||||
it('should return false if URL is relative', function () {
|
||||
|
||||
Reference in New Issue
Block a user