File tree 1 file changed +0
-12
lines changed
tests/unit/specs/components
1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,6 @@ describe('HelpSection.vue', () => {
24
24
config . mocks . i18n . $t = ( key ) => {
25
25
return i18n . messages [ key ]
26
26
}
27
- config . mocks . $ga = {
28
- event : ( sentObj ) => {
29
- return sentObj
30
- }
31
- }
32
27
wrapper = mount ( HelpSection , {
33
28
localVue,
34
29
i18n
@@ -135,13 +130,6 @@ describe('HelpSection.vue', () => {
135
130
wrapper . vm . clickHandler ( 1 )
136
131
expect ( wrapper . vm . modals [ 1 ] . status ) . toBe ( true )
137
132
} )
138
- it ( 'Check if the $ga event is working in production' , ( ) => {
139
- process . env . NODE_ENV = 'production'
140
- expect ( wrapper . vm . clickHandler ( 2 ) ) . toStrictEqual ( { eventAction : 'clicked' , eventCategory : 'HelpSection' , eventLabel : 'how-licenses-work' } )
141
- expect ( wrapper . vm . modals [ 2 ] . status ) . toBe ( true )
142
- expect ( wrapper . vm . modals [ 1 ] . status ) . toBe ( false )
143
- } )
144
-
145
133
// Snapshot tests
146
134
it ( 'Check if the HelpSection.vue component has the expected UI' , ( ) => {
147
135
expect ( wrapper ) . toMatchSnapshot ( )
You can’t perform that action at this time.
0 commit comments