|
3 | 3 | */ |
4 | 4 | import { isAbsoluteUrl } from './isAbsoluteUrl' |
5 | 5 |
|
6 | | -test('returns true for the "http" scheme', () => { |
| 6 | +it('returns true for the "http" scheme', () => { |
7 | 7 | expect(isAbsoluteUrl('http://www.domain.com')).toEqual(true) |
8 | 8 | }) |
9 | 9 |
|
10 | | -test('returns true for the "https" scheme', () => { |
| 10 | +it('returns true for the "https" scheme', () => { |
11 | 11 | expect(isAbsoluteUrl('https://www.domain.com')).toEqual(true) |
12 | 12 | }) |
13 | 13 |
|
14 | | -test('returns true for the "ws" scheme', () => { |
| 14 | +it('returns true for the "ws" scheme', () => { |
15 | 15 | expect(isAbsoluteUrl('ws://www.domain.com')).toEqual(true) |
16 | 16 | }) |
17 | 17 |
|
18 | | -test('returns true for the "ftp" scheme', () => { |
| 18 | +it('returns true for the "ftp" scheme', () => { |
19 | 19 | expect(isAbsoluteUrl('ftp://www.domain.com')).toEqual(true) |
20 | 20 | }) |
21 | 21 |
|
22 | | -test('returns true for the custom scheme', () => { |
| 22 | +it('returns true for the custom scheme', () => { |
23 | 23 | expect(isAbsoluteUrl('web+my://www.example.com')).toEqual(true) |
24 | 24 | }) |
25 | 25 |
|
26 | | -test('returns false for the relative URL', () => { |
| 26 | +it('returns false for the relative URL', () => { |
27 | 27 | expect(isAbsoluteUrl('/test')).toEqual(false) |
28 | 28 | }) |
29 | 29 |
|
30 | | -test('returns false for the relative URL without a leading slash', () => { |
| 30 | +it('returns false for the relative URL without a leading slash', () => { |
31 | 31 | expect(isAbsoluteUrl('test')).toEqual(false) |
32 | 32 | }) |
0 commit comments