Skip to content

Commit 25a74ab

Browse files
committed
Fix test
1 parent a821147 commit 25a74ab

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/theme-pink-cupcake/src/tests/components/Content/FormRegister.test.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,16 @@ const uikitNotification = {
8181
timeout: 4000
8282
}
8383

84+
// Mock the config & translator store
85+
vi.mock('@userfrosting/sprinkle-core/stores', () => ({
86+
useConfigStore: () => ({
87+
get: vi.fn(() => 'Site Title')
88+
}),
89+
useTranslator: () => ({
90+
translate: vi.fn(() => 'Welcome back John Doe!')
91+
})
92+
}))
93+
8494
describe('FormRegister.vue', () => {
8595
afterEach(() => {
8696
vi.clearAllMocks()

0 commit comments

Comments
 (0)