Skip to content

Commit cb4d6e7

Browse files
committed
Remove GA mocking
Signed-off-by: Olga Bulat <obulat@gmail.com>
1 parent 9e0b08e commit cb4d6e7

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

tests/unit/specs/components/HelpSection.spec.js

-12
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)