MCPcopy Create free account
hub / github.com/Snapchat/Valdi / testUrlToRegex

Function testUrlToRegex

valdi/vscode_debugger/src/test/common/urlUtils.test.ts:54–58  ·  view source on GitHub ↗
(input: string, expectedRe: string)

Source from the content-addressed store, hash-verified

52 });
53
54 const testUrlToRegex = (input: string, expectedRe: string) => {
55 const actualRe = urlToRegex(input);
56 expect(actualRe).to.equal(expectedRe);
57 expect(input).to.match(new RegExp(actualRe));
58 };
59
60 describe('urlToRegex - case sensitive', () => {
61 before(() => setCaseSensitivePaths(true));

Callers 1

urlUtils.test.tsFile · 0.85

Calls 2

urlToRegexFunction · 0.90
matchMethod · 0.45

Tested by

no test coverage detected