[Closes #10] Reactive breadcrumbs
This commit is contained in:
parent
6d3cdb560d
commit
a1708317ec
19 changed files with 200 additions and 33 deletions
23
tests/shared/utils/auth-client.test.ts
Normal file
23
tests/shared/utils/auth-client.test.ts
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
import { describe, expect, it, vi } from "vitest";
|
||||
|
||||
import { authClient } from "#shared/utils/auth-client";
|
||||
import { createAuthClient } from "better-auth/vue";
|
||||
|
||||
const vars = vi.hoisted(() => ({
|
||||
mockAuthClient: {
|
||||
signIn: vi.fn(),
|
||||
signUp: vi.fn(),
|
||||
signOut: vi.fn(),
|
||||
},
|
||||
}));
|
||||
|
||||
vi.mock("better-auth/vue", () => ({
|
||||
createAuthClient: vi.fn(() => vars.mockAuthClient),
|
||||
}));
|
||||
|
||||
describe("auth-client utility", () => {
|
||||
it("should create and export the auth client", () => {
|
||||
expect(createAuthClient).toHaveBeenCalled();
|
||||
expect(authClient).toBe(vars.mockAuthClient);
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue