Skip to content

Commit

Permalink
fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
RadhepS committed Oct 21, 2024
1 parent 1212d45 commit eb94c90
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ describe('UrlUtils', () => {
});

it('should return false for data: protocol', () => {
expect(
isHttpOrHttps(new URL('data://data:text/plain,some%20data/'))
).toBeFalsy();
const url = getUrl('data:text/plain,some%20data/');
expect(url && isHttpOrHttps(url)).toBeFalsy();
});
});
});

0 comments on commit eb94c90

Please sign in to comment.