summaryrefslogtreecommitdiff
path: root/spec/frontend/right_sidebar_spec.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/right_sidebar_spec.js')
-rw-r--r--spec/frontend/right_sidebar_spec.js16
1 files changed, 0 insertions, 16 deletions
diff --git a/spec/frontend/right_sidebar_spec.js b/spec/frontend/right_sidebar_spec.js
index 8699e1cf420..d1f861669a0 100644
--- a/spec/frontend/right_sidebar_spec.js
+++ b/spec/frontend/right_sidebar_spec.js
@@ -66,22 +66,6 @@ describe('RightSidebar', () => {
assertSidebarState('collapsed');
});
- it('should broadcast todo:toggle event when add todo clicked', (done) => {
- const todos = getJSONFixture('todos/todos.json');
- mock.onPost(/(.*)\/todos$/).reply(200, todos);
-
- const todoToggleSpy = jest.fn();
- $(document).on('todo:toggle', todoToggleSpy);
-
- $('.issuable-sidebar-header .js-issuable-todo').click();
-
- setImmediate(() => {
- expect(todoToggleSpy.mock.calls.length).toEqual(1);
-
- done();
- });
- });
-
it('should not hide collapsed icons', () => {
[].forEach.call(document.querySelectorAll('.sidebar-collapsed-icon'), (el) => {
expect(el.querySelector('.fa, svg').classList.contains('hidden')).toBeFalsy();