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

Function setItem

packages/server/test/guiStore.e2e.test.ts:83–89  ·  view source on GitHub ↗
(api: ReturnType<typeof appOf>, key: string, value: string)

Source from the content-addressed store, hash-verified

81}
82
83function setItem(api: ReturnType<typeof appOf>, key: string, value: string) {
84 return api.inject({
85 method: 'POST',
86 url: '/api/v1/gui/store/setItem',
87 payload: { key, value },
88 });
89}
90
91describe('gui store routes', () => {
92 it('getItem returns null when the file does not exist', async () => {

Callers 1

Calls 1

injectMethod · 0.80

Tested by

no test coverage detected