mirror of
https://github.com/gethomepage/homepage.git
synced 2026-02-08 08:50:52 +08:00
Fix docker test on ci
This commit is contained in:
@@ -45,7 +45,13 @@ describe("utils/config/docker", () => {
|
|||||||
const args = getDockerArguments();
|
const args = getDockerArguments();
|
||||||
|
|
||||||
expect(checkAndCopyConfig).toHaveBeenCalledWith("docker.yaml");
|
expect(checkAndCopyConfig).toHaveBeenCalledWith("docker.yaml");
|
||||||
|
// if running on linux, should return socketPath
|
||||||
|
if (process.platform !== "win32" && process.platform !== "darwin") {
|
||||||
|
expect(args).toEqual({ socketPath: "/var/run/docker.sock" });
|
||||||
|
} else {
|
||||||
|
// otherwise, should return host
|
||||||
expect(args).toEqual(expect.objectContaining({ host: expect.any(String) }));
|
expect(args).toEqual(expect.objectContaining({ host: expect.any(String) }));
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
it("returns socket config when server has a socket", () => {
|
it("returns socket config when server has a socket", () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user