Commit 73dc529b authored by Phil Hughes's avatar Phil Hughes

fixed merge request specs

parent d53aea6b
...@@ -70,6 +70,7 @@ import IssuablesHelper from '~/helpers/issuables_helper'; ...@@ -70,6 +70,7 @@ import IssuablesHelper from '~/helpers/issuables_helper';
beforeEach(() => { beforeEach(() => {
loadFixtures('merge_requests/merge_request_with_task_list.html.raw'); loadFixtures('merge_requests/merge_request_with_task_list.html.raw');
this.el = document.querySelector('.js-issuable-actions'); this.el = document.querySelector('.js-issuable-actions');
new MergeRequest(); // eslint-disable-line no-new
MergeRequest.hideCloseButton(); MergeRequest.hideCloseButton();
}); });
...@@ -89,8 +90,7 @@ import IssuablesHelper from '~/helpers/issuables_helper'; ...@@ -89,8 +90,7 @@ import IssuablesHelper from '~/helpers/issuables_helper';
beforeEach(() => { beforeEach(() => {
loadFixtures('merge_requests/merge_request_of_current_user.html.raw'); loadFixtures('merge_requests/merge_request_of_current_user.html.raw');
this.el = document.querySelector('.js-issuable-actions'); this.el = document.querySelector('.js-issuable-actions');
const merge = new MergeRequest(); MergeRequest.hideCloseButton();
merge.hideCloseButton();
}); });
it('hides the close button', () => { it('hides the close button', () => {
......
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