File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed
tests/unit/specs/components Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,6 @@ describe('HelpSection.vue', () => {
2424 config . mocks . i18n . $t = ( key ) => {
2525 return i18n . messages [ key ]
2626 }
27- config . mocks . $ga = {
28- event : ( sentObj ) => {
29- return sentObj
30- }
31- }
3227 wrapper = mount ( HelpSection , {
3328 localVue,
3429 i18n
@@ -135,13 +130,6 @@ describe('HelpSection.vue', () => {
135130 wrapper . vm . clickHandler ( 1 )
136131 expect ( wrapper . vm . modals [ 1 ] . status ) . toBe ( true )
137132 } )
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-
145133 // Snapshot tests
146134 it ( 'Check if the HelpSection.vue component has the expected UI' , ( ) => {
147135 expect ( wrapper ) . toMatchSnapshot ( )
You can’t perform that action at this time.
0 commit comments