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

Function installStorage

apps/kimi-web/test/notification-logic.test.ts:29–34  ·  view source on GitHub ↗
(storage: Storage)

Source from the content-addressed store, hash-verified

27}
28
29function installStorage(storage: Storage): void {
30 Object.defineProperty(globalThis, 'localStorage', {
31 configurable: true,
32 value: storage,
33 });
34}
35
36// Singleton — module-level refs + setters. The OS Notification API is absent in
37// the test env, so the *enable* path is a no-op; the disable path and the

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected