Commit 635167ac authored by Andrew Fontaine's avatar Andrew Fontaine

Merge branch 'refactor/spec-javascripts-cycle_analytics-to-jest' into 'master'

Migrate spec/javascripts/cycle_analytics/ to Jest

Closes #194224

See merge request gitlab-org/gitlab!26739
parents d27e02cd 0a3c44eb
import Vue from 'vue';
import mountComponent from 'spec/helpers/vue_mount_component_helper';
import mountComponent from 'helpers/vue_mount_component_helper';
import banner from '~/cycle_analytics/components/banner.vue';
describe('Cycle analytics banner', () => {
......@@ -36,7 +36,7 @@ describe('Cycle analytics banner', () => {
});
it('should emit an event when close button is clicked', () => {
spyOn(vm, '$emit');
jest.spyOn(vm, '$emit').mockImplementation(() => {});
vm.$el.querySelector('.js-ca-dismiss-button').click();
......
import Vue from 'vue';
import mountComponent from 'spec/helpers/vue_mount_component_helper';
import mountComponent from 'helpers/vue_mount_component_helper';
import component from '~/cycle_analytics/components/total_time_component.vue';
describe('Total time component', () => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment