diff options
author | Johann Hubert Sonntagbauer <johann.sonntagbauer@gmail.com> | 2018-10-09 20:03:09 +0200 |
---|---|---|
committer | Johann Hubert Sonntagbauer <johann.sonntagbauer@gmail.com> | 2018-10-17 06:57:29 +0200 |
commit | 6f5723a169b5d400c136dbd844fc54c68e5f8563 (patch) | |
tree | e7bad2648366ed5943293655a0abe23367e869a6 /spec/javascripts/dirty_submit | |
parent | 28d412e5b2b8499fba22e8fabb1d44f44449228e (diff) | |
download | gitlab-ce-6f5723a169b5d400c136dbd844fc54c68e5f8563.tar.gz |
enable jasmine/new-line-before-expect
Diffstat (limited to 'spec/javascripts/dirty_submit')
-rw-r--r-- | spec/javascripts/dirty_submit/dirty_submit_collection_spec.js | 8 | ||||
-rw-r--r-- | spec/javascripts/dirty_submit/dirty_submit_form_spec.js | 8 |
2 files changed, 12 insertions, 4 deletions
diff --git a/spec/javascripts/dirty_submit/dirty_submit_collection_spec.js b/spec/javascripts/dirty_submit/dirty_submit_collection_spec.js index 87a26183b63..08ffc44605f 100644 --- a/spec/javascripts/dirty_submit/dirty_submit_collection_spec.js +++ b/spec/javascripts/dirty_submit/dirty_submit_collection_spec.js @@ -15,9 +15,13 @@ describe('DirtySubmitCollection', () => { expect(submit.disabled).toBe(true); return setInput(input, `${originalValue} changes`) - .then(() => expect(submit.disabled).toBe(false)) + .then(() => { + expect(submit.disabled).toBe(false); + }) .then(() => setInput(input, originalValue)) - .then(() => expect(submit.disabled).toBe(true)) + .then(() => { + expect(submit.disabled).toBe(true); + }) .then(done) .catch(done.fail); }); diff --git a/spec/javascripts/dirty_submit/dirty_submit_form_spec.js b/spec/javascripts/dirty_submit/dirty_submit_form_spec.js index 86d53fa984a..a2ec332e956 100644 --- a/spec/javascripts/dirty_submit/dirty_submit_form_spec.js +++ b/spec/javascripts/dirty_submit/dirty_submit_form_spec.js @@ -12,9 +12,13 @@ describe('DirtySubmitForm', () => { expect(submit.disabled).toBe(true); return setInput(input, `${originalValue} changes`) - .then(() => expect(submit.disabled).toBe(false)) + .then(() => { + expect(submit.disabled).toBe(false); + }) .then(() => setInput(input, originalValue)) - .then(() => expect(submit.disabled).toBe(true)) + .then(() => { + expect(submit.disabled).toBe(true); + }) .then(done) .catch(done.fail); }); |