| Total Complexity | 2 |
| Complexity/F | 1 |
| Lines of Code | 11 |
| Function Count | 2 |
| Duplicated Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import { isPathMatchUrl } from '../misc' |
||
| 2 | |||
| 3 | describe('Misc', () => { |
||
| 4 | it('should match URL correctly with no error', function() { |
||
| 5 | expect(isPathMatchUrl('/', '/')).toBe(true) |
||
| 6 | expect(isPathMatchUrl('/user', '/')).toBe(false) |
||
| 7 | expect(isPathMatchUrl('/', '/user')).toBe(false) |
||
| 8 | expect(isPathMatchUrl('/user', '/profile')).toBe(false) |
||
| 9 | expect(isPathMatchUrl('/settings/theme', '/settings')).toBe(true) |
||
| 10 | }) |
||
| 11 | }) |
||
| 12 |