@@ -160,7 +160,7 @@ describe('GoogleTagManagerTest', () => {
160160
161161 // Then we publish the sign_up event only once
162162 expect ( GoogleTagManager . publishEvent ) . toHaveBeenCalledTimes ( 1 ) ;
163- expect ( GoogleTagManager . publishEvent ) . toHaveBeenCalledWith ( CONST . ANALYTICS . EVENT . SIGN_UP , accountID , email ) ;
163+ expect ( GoogleTagManager . publishEvent ) . toHaveBeenCalledWith ( CONST . ANALYTICS . EVENT . SIGN_UP . NAME , accountID , email ) ;
164164 } ) ;
165165
166166 test ( 'workspace_created' , async ( ) => {
@@ -201,7 +201,7 @@ describe('GoogleTagManagerTest', () => {
201201
202202 // Then we publish a workspace_created event only once
203203 expect ( GoogleTagManager . publishEvent ) . toHaveBeenCalledTimes ( 1 ) ;
204- expect ( GoogleTagManager . publishEvent ) . toHaveBeenCalledWith ( CONST . ANALYTICS . EVENT . WORKSPACE_CREATED , 123456 , email ) ;
204+ expect ( GoogleTagManager . publishEvent ) . toHaveBeenCalledWith ( CONST . ANALYTICS . EVENT . WORKSPACE_CREATED . NAME , 123456 , email ) ;
205205 } ) ;
206206
207207 test ( 'workspace_created - categorizeTrackedExpense' , async ( ) => {
@@ -245,7 +245,7 @@ describe('GoogleTagManagerTest', () => {
245245
246246 // Then we publish a workspace_created event only once
247247 expect ( GoogleTagManager . publishEvent ) . toHaveBeenCalledTimes ( 1 ) ;
248- expect ( GoogleTagManager . publishEvent ) . toHaveBeenCalledWith ( 'workspace_created' , accountID , email ) ;
248+ expect ( GoogleTagManager . publishEvent ) . toHaveBeenCalledWith ( CONST . ANALYTICS . EVENT . WORKSPACE_CREATED . NAME , accountID , email ) ;
249249 } ) ;
250250
251251 test ( 'paid_adoption - addPaymentCard' , async ( ) => {
@@ -262,7 +262,7 @@ describe('GoogleTagManagerTest', () => {
262262
263263 // Then we publish a paid_adoption event only once
264264 expect ( GoogleTagManager . publishEvent ) . toHaveBeenCalledTimes ( 1 ) ;
265- expect ( GoogleTagManager . publishEvent ) . toHaveBeenCalledWith ( CONST . ANALYTICS . EVENT . PAID_ADOPTION , accountID , email ) ;
265+ expect ( GoogleTagManager . publishEvent ) . toHaveBeenCalledWith ( CONST . ANALYTICS . EVENT . PAID_ADOPTION . NAME , accountID , email ) ;
266266 } ) ;
267267
268268 test ( 'paid_adoption - addSubscriptionPaymentCard' , async ( ) => {
@@ -285,7 +285,7 @@ describe('GoogleTagManagerTest', () => {
285285
286286 // Then we publish a paid_adoption event only once
287287 expect ( GoogleTagManager . publishEvent ) . toHaveBeenCalledTimes ( 1 ) ;
288- expect ( GoogleTagManager . publishEvent ) . toHaveBeenCalledWith ( CONST . ANALYTICS . EVENT . PAID_ADOPTION , accountID , email ) ;
288+ expect ( GoogleTagManager . publishEvent ) . toHaveBeenCalledWith ( CONST . ANALYTICS . EVENT . PAID_ADOPTION . NAME , accountID , email ) ;
289289 } ) ;
290290
291291 it ( 'addSubscriptionPaymentCard when changing payment card, will not publish event paid_adoption' , async ( ) => {
0 commit comments