mirror of
https://github.com/gethomepage/homepage.git
synced 2026-02-08 00:40:52 +08:00
Fix docker test on ci
This commit is contained in:
@@ -45,7 +45,13 @@ describe("utils/config/docker", () => {
|
||||
const args = getDockerArguments();
|
||||
|
||||
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) }));
|
||||
}
|
||||
});
|
||||
|
||||
it("returns socket config when server has a socket", () => {
|
||||
|
||||
Reference in New Issue
Block a user