chore: fix test

This commit is contained in:
Bereket Engida
2024-10-17 08:24:10 +03:00
parent e5c70e680e
commit a6d39b068b

View File

@@ -22,6 +22,7 @@ describe("init", async () => {
});
expect(res.options.baseURL).toBe("http://localhost:3000");
expect(res.baseURL).toBe("http://localhost:3000/api/auth");
vi.restoreAllMocks();
});
it("should respect base path", async () => {
@@ -31,6 +32,7 @@ describe("init", async () => {
basePath: "/custom-path",
});
expect(res.baseURL).toBe("http://localhost:3000/custom-path");
vi.restoreAllMocks();
});
it("should work with base path", async () => {