MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / normalize

Function normalize

packages/pi-tui/test/autocomplete.test.ts:381–382  ·  view source on GitHub ↗
(result: Awaited<ReturnType<typeof getSuggestions>>)

Source from the content-addressed store, hash-verified

379 const queryInPathResult = await getSuggestions(queryInPathProvider, [query], 0, query.length);
380
381 const normalize = (result: Awaited<ReturnType<typeof getSuggestions>>) =>
382 (result?.items ?? []).map((item) => `${item.label} :: ${item.description ?? ""}`).sort();
383
384 assert.deepStrictEqual(normalize(queryInPathResult), normalize(normalResult));
385 assert.ok(

Callers 15

runtime.test.tsFile · 0.85
relativizeIfUnderFunction · 0.85
parsedFilePathFunction · 0.85
extractContentFilePathFunction · 0.85
relativizeIfUnderFunction · 0.85
normalizeSourcePathFunction · 0.85
findProjectRootFunction · 0.85
resolvePathFunction · 0.85
normalizeAdditionalDirsFunction · 0.85
resolvePathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected