Commit 0c73c369 authored by leiminghuan's avatar leiminghuan

append frontend tests

parent e56636d1
......@@ -76,4 +76,19 @@ describe('Subscriptions', function() {
expect(vm.$emit).toHaveBeenCalledWith('toggleSidebar');
});
it('notify component disabled when project_emails_disabled is set on', () => {
vm = mountComponent(Subscriptions, {
subscribed: true,
projectEmailsDisabled: true,
subscribeDisabledDescription: 'Notifications have been disabled',
});
expect(vm.$el.querySelector('span').getAttribute('data-original-title')).toBe(
vm.subscribeDisabledDescription,
);
expect(vm.$el.querySelector('.issuable-header-text').textContent.trim()).toBe(
vm.subscribeDisabledDescription,
);
});
});
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