Commit 9b64d446 authored by Phil Hughes's avatar Phil Hughes

Merge branch 'winh-date_picker_spec-ee' into 'master'

Copy missing test in date_picker_spec.js from CE

Closes #6554

See merge request gitlab-org/gitlab-ee!10429
parents fafae771 13fe32ac
......@@ -12,6 +12,15 @@ describe('sidebarDatePicker', () => {
});
});
it('should emit toggleCollapse when collapsed toggle sidebar is clicked', () => {
const toggleCollapse = jasmine.createSpy();
vm.$on('toggleCollapse', toggleCollapse);
vm.$el.querySelector('.issuable-sidebar-header .gutter-toggle').click();
expect(toggleCollapse).toHaveBeenCalled();
});
it('should render collapsed-calendar-icon', () => {
expect(vm.$el.querySelector('.sidebar-collapsed-icon')).toBeDefined();
});
......
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