MCPcopy Create free account
hub / github.com/angular/angular / recognizer

Function recognizer

packages/router/test/recognize.spec.ts:1035–1043  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

1033
1034 describe('with segments after', () => {
1035 const recognizer = (url: string) => {
1036 const config = [
1037 {
1038 path: 'foo/**/bar',
1039 component: ComponentA,
1040 },
1041 ];
1042 return recognize(config, url);
1043 };
1044
1045 it('matches a url with one segment for the wildcard', async () => {
1046 const s = await recognizer('foo/a/bar');

Callers 1

recognize.spec.tsFile · 0.85

Calls 1

recognizeFunction · 0.70

Tested by

no test coverage detected