Skip to content

Commit

Permalink
Undo changes to the test
Browse files Browse the repository at this point in the history
  • Loading branch information
afharo authored and dokmic committed Dec 19, 2024
1 parent 72fa366 commit 47ad664
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ describe('isInternalURL', () => {
});

it('should return `true` if relative path does not escape base path', () => {
const href = `${basePath}/app/kibana/../../../../../management`;
const href = `${basePath}/app/kibana/../../management`;
expect(isInternalURL(href, basePath)).toBe(true);
});

it('should return `false` if relative path escapes base path', () => {
const href = `${basePath}/app/kibana/../../../../../../management`;
const href = `${basePath}/app/kibana/../../../management`;
expect(isInternalURL(href, basePath)).toBe(false);
});

Expand Down

0 comments on commit 47ad664

Please sign in to comment.