File tree Expand file tree Collapse file tree 1 file changed +0
-24
lines changed
packages/web/src/views/Login Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -103,30 +103,6 @@ describe("LoginView", () => {
103103 } ) ;
104104 expect ( mockAuthApi . loginOrSignup ) . toHaveBeenCalledWith ( "mock-oauth-code" ) ;
105105 } ) ;
106-
107- it ( "should call posthog.identify for new user signup" , async ( ) => {
108- const testEmail = "newuser@example.com" ;
109- mockAuthApi . loginOrSignup . mockResolvedValue ( {
110- cUserId : "new-user-id" ,
111- isNewUser : true ,
112- email : testEmail ,
113- } ) ;
114-
115- render ( < LoginView /> ) ;
116-
117- const {
118- useGoogleLogin,
119- } = require ( "@web/components/oauth/google/useGoogleLogin" ) ;
120- const mockUseGoogleLogin = useGoogleLogin as jest . Mock ;
121- const onSuccessCallback = mockUseGoogleLogin . mock . calls [ 0 ] [ 0 ] . onSuccess ;
122-
123- await onSuccessCallback ( "mock-oauth-code" ) ;
124-
125- // Verify PostHog identify was called for new user
126- expect ( mockIdentify ) . toHaveBeenCalledWith ( testEmail , {
127- email : testEmail ,
128- } ) ;
129- } ) ;
130106 } ) ;
131107
132108 describe ( "Authentication Flow" , ( ) => {
You can’t perform that action at this time.
0 commit comments