diff options
author | Mike Greiling <mike@pixelcog.com> | 2018-10-17 10:21:28 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2018-10-17 19:18:17 +0300 |
commit | 7a3e605350fd501661d2cd0fe72440bf0773f4b7 (patch) | |
tree | 39d10a87baf9e80082ede3ff414e6c9ed9fc5c1b /spec/javascripts/issue_show | |
parent | 024c31fe79b0e4026c9bff0802424efe6e127a4c (diff) |
Resolve eslint violations
Diffstat (limited to 'spec/javascripts/issue_show')
-rw-r--r-- | spec/javascripts/issue_show/components/app_spec.js | 5 | ||||
-rw-r--r-- | spec/javascripts/issue_show/components/description_spec.js | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/spec/javascripts/issue_show/components/app_spec.js b/spec/javascripts/issue_show/components/app_spec.js index c9d2044b054..2bd1b3996dc 100644 --- a/spec/javascripts/issue_show/components/app_spec.js +++ b/spec/javascripts/issue_show/components/app_spec.js @@ -74,6 +74,7 @@ describe('Issuable output', () => { expect(vm.$el.querySelector('.js-task-list-field').value).toContain( 'this is a description', ); + expect(formatText(editedText.innerText)).toMatch(/Edited[\s\S]+?by Some User/); expect(editedText.querySelector('.author-link').href).toMatch(/\/some_user$/); expect(editedText.querySelector('time')).toBeTruthy(); @@ -91,6 +92,7 @@ describe('Issuable output', () => { expect(formatText(vm.$el.querySelector('.edited-text').innerText)).toMatch( /Edited[\s\S]+?by Other User/, ); + expect(editedText.querySelector('.author-link').href).toMatch(/\/other_user$/); expect(editedText.querySelector('time')).toBeTruthy(); }) @@ -294,8 +296,9 @@ describe('Issuable output', () => { it('opens recaptcha modal if update rejected as spam', done => { function mockScriptSrc() { const recaptchaChild = vm.$children.find( + // eslint-disable-next-line no-underscore-dangle child => child.$options._componentTag === 'recaptcha-modal', - ); // eslint-disable-line no-underscore-dangle + ); recaptchaChild.scriptSrc = '//scriptsrc'; } diff --git a/spec/javascripts/issue_show/components/description_spec.js b/spec/javascripts/issue_show/components/description_spec.js index 6a4de8ffa1a..463f3c89926 100644 --- a/spec/javascripts/issue_show/components/description_spec.js +++ b/spec/javascripts/issue_show/components/description_spec.js @@ -54,8 +54,9 @@ describe('Description component', () => { it('opens recaptcha dialog if update rejected as spam', done => { let modal; const recaptchaChild = vm.$children.find( + // eslint-disable-next-line no-underscore-dangle child => child.$options._componentTag === 'recaptcha-modal', - ); // eslint-disable-line no-underscore-dangle + ); recaptchaChild.scriptSrc = '//scriptsrc'; |