test: align widget modernization fixtures
This commit is contained in:
1 parent
c099a8eef6
commit
a3a89db727
1 file changed
+17
@@ -12,6 +12,23 @@ import { dockerRouter } from "../../docker/docker-router";
|
|||||||
|
|
||||||
// Mock the auth module to return an empty session
|
// Mock the auth module to return an empty session
|
||||||
vi.mock("@homarr/auth", () => ({ auth: () => ({}) as Session }));
|
vi.mock("@homarr/auth", () => ({ auth: () => ({}) as Session }));
|
||||||
|
vi.mock("@homarr/docker", () => ({
|
||||||
|
DockerSingleton: {
|
||||||
|
getInstances: () => [
|
||||||
|
{
|
||||||
|
instance: {
|
||||||
|
getContainer: () => ({
|
||||||
|
inspect: (callback: (error: null, data: object) => void) => callback(null, {}),
|
||||||
|
start: () => Promise.resolve(),
|
||||||
|
stop: () => Promise.resolve(),
|
||||||
|
restart: () => Promise.resolve(),
|
||||||
|
remove: () => Promise.resolve(),
|
||||||
|
}),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
}));
|
||||||
vi.mock("@homarr/request-handler/docker", () => ({
|
vi.mock("@homarr/request-handler/docker", () => ({
|
||||||
getContainerLogsAsync: async () => {
|
getContainerLogsAsync: async () => {
|
||||||
await Promise.resolve();
|
await Promise.resolve();
|
||||||
|
|||||||
Reference in new issue
Block a user