| ... | ... | @@ -5,8 +5,10 @@ import createStore from '~/notes/stores'; |
|
|
|
describe('system note component', () => {
|
|
|
|
let vm;
|
|
|
|
let props;
|
|
|
|
let initMRPopoversSpy;
|
|
|
|
|
|
|
|
beforeEach(() => {
|
|
|
|
initMRPopoversSpy = spyOnDependency(issueSystemNote, 'initMRPopovers');
|
|
|
|
props = {
|
|
|
|
note: {
|
|
|
|
id: '1424',
|
| ... | ... | @@ -56,4 +58,8 @@ describe('system note component', () => { |
|
|
|
it('removes wrapping paragraph from note HTML', () => {
|
|
|
|
expect(vm.$el.querySelector('.system-note-message').innerHTML).toEqual('<span>closed</span>');
|
|
|
|
});
|
|
|
|
|
|
|
|
it('should initMRPopovers onMount', () => {
|
|
|
|
expect(initMRPopoversSpy).toHaveBeenCalled();
|
|
|
|
});
|
|
|
|
}); |