MCPcopy Index your code
hub / github.com/callumalpass/tasknotes / createContext

Function createContext

tests/unit/modals/taskModalActionButtons.test.ts:7–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5} from "../../../src/modals/taskModalActionButtons";
6
7function createContext(): TaskModalActionButtonContext {
8 return {
9 translate: (key) =>
10 ({
11 "modals.task.buttons.save": "Save",
12 "common.cancel": "Cancel",
13 })[key] || key,
14 };
15}
16
17describe("taskModalActionButtons", () => {
18 beforeEach(() => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected