Fix bailey auth import fallback and assert login alias

This commit is contained in:
Peter Steinberger
2025-11-25 00:22:49 +01:00
parent 9595964419
commit 3b8a31660b
2 changed files with 29 additions and 11 deletions

View File

@@ -25,6 +25,12 @@ afterEach(() => {
});
describe("CLI commands", () => {
it("exposes login alias", () => {
const names = index.program.commands.map((c) => c.name());
expect(names).toContain("login");
expect(names).toContain("web:login");
});
it("send command routes to web provider", async () => {
const sendWeb = vi.spyOn(provider, "sendMessageWeb").mockResolvedValue();
await index.program.parseAsync(