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

Function testAll

valdi/vscode_debugger/src/test/common/urlUtils.test.ts:131–139  ·  view source on GitHub ↗
(filter: string, cases: [string, boolean][])

Source from the content-addressed store, hash-verified

129
130 describe('createTargetFilter()', () => {
131 function testAll(filter: string, cases: [string, boolean][]) {
132 const filterFn = createTargetFilter(filter);
133 for (const [url, expected] of cases) {
134 expect(filterFn(url)).to.equal(
135 expected,
136 `expected ${url} to ${expected ? '' : 'not '}match ${filter}`,
137 );
138 }
139 }
140
141 it('returns exact match', () => {
142 testAll('http://localhost/site', [

Callers 1

urlUtils.test.tsFile · 0.85

Calls 1

createTargetFilterFunction · 0.90

Tested by

no test coverage detected