Commit f4de2453 authored by Michel Engelen's avatar Michel Engelen Committed by Michel Engelen

updated Karma test for changed strings in mr-widget state

parent 9bc7b613
...@@ -10,7 +10,7 @@ describe('UnresolvedDiscussions', () => { ...@@ -10,7 +10,7 @@ describe('UnresolvedDiscussions', () => {
vm.$destroy(); vm.$destroy();
}); });
describe('with discussions path', () => { describe('with threads path', () => {
beforeEach(() => { beforeEach(() => {
vm = mountComponent(Component, { vm = mountComponent(Component, {
mr: { mr: {
...@@ -21,7 +21,7 @@ describe('UnresolvedDiscussions', () => { ...@@ -21,7 +21,7 @@ describe('UnresolvedDiscussions', () => {
it('should have correct elements', () => { it('should have correct elements', () => {
expect(vm.$el.innerText).toContain( expect(vm.$el.innerText).toContain(
'There are unresolved discussions. Please resolve these discussions', 'There are unresolved threads. Please resolve these threads',
); );
expect(vm.$el.innerText).toContain('Create an issue to resolve them later'); expect(vm.$el.innerText).toContain('Create an issue to resolve them later');
...@@ -29,14 +29,14 @@ describe('UnresolvedDiscussions', () => { ...@@ -29,14 +29,14 @@ describe('UnresolvedDiscussions', () => {
}); });
}); });
describe('without discussions path', () => { describe('without threads path', () => {
beforeEach(() => { beforeEach(() => {
vm = mountComponent(Component, { mr: {} }); vm = mountComponent(Component, { mr: {} });
}); });
it('should not show create issue link if user cannot create issue', () => { it('should not show create issue link if user cannot create issue', () => {
expect(vm.$el.innerText).toContain( expect(vm.$el.innerText).toContain(
'There are unresolved discussions. Please resolve these discussions', 'There are unresolved threads. Please resolve these threads',
); );
expect(vm.$el.querySelector('.js-create-issue')).toEqual(null); expect(vm.$el.querySelector('.js-create-issue')).toEqual(null);
......
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