Skip to content

Commit 0ba2051

Browse files
arbrandesclaude
andcommitted
fix: satisfy new UserData type in hooks test
Co-Authored-By: Claude <noreply@anthropic.com>
1 parent ad33bd1 commit 0ba2051

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • src/containers/CourseCard/components/CourseCardBanners/CreditBanner/views

src/containers/CourseCard/components/CourseCardBanners/CreditBanner/views/hooks.test.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ const createWrapper = () => {
3030
const wrapper = ({ children }: { children: React.ReactNode }) => (
3131
<QueryClientProvider client={queryClient}>
3232
<AppContext.Provider value={{
33-
authenticatedUser: { username: 'test-user' },
33+
authenticatedUser: {
34+
username: 'test-user', userId: 1, roles: [], administrator: false,
35+
},
36+
config: {} as any,
3437
}}
3538
>
3639
{children}

0 commit comments

Comments
 (0)