fixed merge request specs
This commit is contained in:
parent
d53aea6bb4
commit
73dc529be3
1 changed files with 2 additions and 2 deletions
|
@ -70,6 +70,7 @@ import IssuablesHelper from '~/helpers/issuables_helper';
|
|||
beforeEach(() => {
|
||||
loadFixtures('merge_requests/merge_request_with_task_list.html.raw');
|
||||
this.el = document.querySelector('.js-issuable-actions');
|
||||
new MergeRequest(); // eslint-disable-line no-new
|
||||
MergeRequest.hideCloseButton();
|
||||
});
|
||||
|
||||
|
@ -89,8 +90,7 @@ import IssuablesHelper from '~/helpers/issuables_helper';
|
|||
beforeEach(() => {
|
||||
loadFixtures('merge_requests/merge_request_of_current_user.html.raw');
|
||||
this.el = document.querySelector('.js-issuable-actions');
|
||||
const merge = new MergeRequest();
|
||||
merge.hideCloseButton();
|
||||
MergeRequest.hideCloseButton();
|
||||
});
|
||||
|
||||
it('hides the close button', () => {
|
||||
|
|
Loading…
Reference in a new issue