Commit 69b317e9 authored by Kushal Pandya's avatar Kushal Pandya Committed by Filipa Lacerda

Fix Epic subscription toggle behaviour

parent 617c78e2
...@@ -167,7 +167,7 @@ export default { ...@@ -167,7 +167,7 @@ export default {
savingTodoAction: false, savingTodoAction: false,
service: new SidebarService({ service: new SidebarService({
endpoint: this.endpoint, endpoint: this.endpoint,
subscriptionEndpoint: this.subscriptionEndpoint, subscriptionEndpoint: this.toggleSubscriptionPath,
todoPath: this.todoPath, todoPath: this.todoPath,
}), }),
epicContext: { epicContext: {
......
---
title: Fix Epic subscription toggle behaviour
merge_request: 7723
author:
type: fixed
...@@ -76,6 +76,12 @@ describe('epicSidebar', () => { ...@@ -76,6 +76,12 @@ describe('epicSidebar', () => {
Cookies.set('collapsed_gutter', originalCookieState); Cookies.set('collapsed_gutter', originalCookieState);
}); });
it('should initialize service with correct endpoints', () => {
expect(vm.service.endpoint.length > 0).toBe(true);
expect(vm.service.subscriptionEndpoint.length > 0).toBe(true);
expect(vm.service.todoPath.length > 0).toBe(true);
});
it('should render right-sidebar-expanded class when not collapsed', () => { it('should render right-sidebar-expanded class when not collapsed', () => {
expect(vm.$el.classList.contains('right-sidebar-expanded')).toEqual(true); expect(vm.$el.classList.contains('right-sidebar-expanded')).toEqual(true);
}); });
......
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