test(board): update selection mocks
This commit is contained in:
2 files changed
+4
-2
No files matched your search
@@ -16,6 +16,7 @@ vi.mock("@homarr/translation/client", () => ({
|
|||||||
"item.create.connectionStatus.ready": "Ready",
|
"item.create.connectionStatus.ready": "Ready",
|
||||||
"item.create.connectionStatus.needsSetup": "Needs setup",
|
"item.create.connectionStatus.needsSetup": "Needs setup",
|
||||||
"item.create.connectionStatus.noConnectionRequired": "No connection required",
|
"item.create.connectionStatus.noConnectionRequired": "No connection required",
|
||||||
|
"item.create.standalone": "Standalone",
|
||||||
"widget.mediaServer.name": "Media Server",
|
"widget.mediaServer.name": "Media Server",
|
||||||
"widget.mediaServer.description": "Stream your media",
|
"widget.mediaServer.description": "Stream your media",
|
||||||
"widget.clock.name": "Clock",
|
"widget.clock.name": "Clock",
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ import { BoardSelectionProvider, useBoardSelection } from "./board-selection-con
|
|||||||
|
|
||||||
vi.mock("@homarr/translation/client", () => ({
|
vi.mock("@homarr/translation/client", () => ({
|
||||||
useI18n: () => (key: string) => key,
|
useI18n: () => (key: string) => key,
|
||||||
|
useScopedI18n: () => (key: string) => key,
|
||||||
}));
|
}));
|
||||||
|
|
||||||
vi.mock("../audio/board-sounds", () => ({
|
vi.mock("../audio/board-sounds", () => ({
|
||||||
@@ -36,8 +37,8 @@ vi.mock("@homarr/boards/edit-mode", () => ({
|
|||||||
}));
|
}));
|
||||||
|
|
||||||
vi.mock("@homarr/boards/updater", () => ({
|
vi.mock("@homarr/boards/updater", () => ({
|
||||||
useUpdateBoard: () => ({
|
usePersistBoard: () => ({
|
||||||
updateBoard: (updater: (prev: Board) => Board) => {
|
updateAndPersistBoard: (updater: (prev: Board) => Board) => {
|
||||||
mockUpdateBoard(updater);
|
mockUpdateBoard(updater);
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in new issue
Block a user