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