上传成功,准备修改路径

This commit is contained in:
cheney 2026-06-17 09:30:22 +08:00
parent 0132be7586
commit fc81584878

View File

@ -50,7 +50,7 @@ afterEach(() => {
}); });
describe("remote module public API", () => { describe("remote module public API", () => {
test("exposes documented public methods", async() => { test("1-1 exposes documented public methods", async() => {
const remote = await createRemote(); const remote = await createRemote();
expect(typeof remote.check).toBe("function"); expect(typeof remote.check).toBe("function");
expect(typeof remote.publish).toBe("function"); expect(typeof remote.publish).toBe("function");
@ -61,12 +61,12 @@ describe("remote module public API", () => {
expect(typeof remote.remove).toBe("function"); expect(typeof remote.remove).toBe("function");
}); });
test("check validates an available webdav client", async () => { test("1-2 check validates an available webdav client", async () => {
const remote = await createRemote(); const remote = await createRemote();
expect(await remote.check()).toBe(true); expect(await remote.check()).toBe(true);
}); });
test("publish stores metadata and version artifacts in webdav layout", async () => { test("1-3 publish stores metadata and version artifacts in webdav layout", async () => {
const remote = await createRemote(); const remote = await createRemote();
const projectDir = writeFixtureProject(tempDir, "1.0.0", "hello v1"); const projectDir = writeFixtureProject(tempDir, "1.0.0", "hello v1");
@ -81,7 +81,7 @@ describe("remote module public API", () => {
expect(metadata.versions).toContain("1.0.0"); expect(metadata.versions).toContain("1.0.0");
expect(version.artifacts[0].path).toBe("any/any/myapp.txt"); expect(version.artifacts[0].path).toBe("any/any/myapp.txt");
expect(artifact).toBe("hello v1"); expect(artifact).toBe("hello v1");
}); }, 30000);
test("install downloads latest matching artifact and records local state", async () => { test("install downloads latest matching artifact and records local state", async () => {
const remote = await createRemote(); const remote = await createRemote();