MCPcopy Create free account
hub / github.com/vercel/vercel / queryOf

Function queryOf

packages/cli/test/unit/util/dev/transforms.test.ts:142–143  ·  view source on GitHub ↗
(reqUrl: string)

Source from the content-addressed store, hash-verified

140
141describe('request.query', () => {
142 const queryOf = (reqUrl: string) =>
143 new URLSearchParams(reqUrl.split('?')[1] ?? '');
144
145 it('set creates a param', () => {
146 const req = { url: '/x', headers: {} };

Callers 1

transforms.test.tsFile · 0.85

Calls 1

splitMethod · 0.80

Tested by

no test coverage detected