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/droplab | |
parent | 28d412e5b2b8499fba22e8fabb1d44f44449228e (diff) | |
download | gitlab-ce-6f5723a169b5d400c136dbd844fc54c68e5f8563.tar.gz |
enable jasmine/new-line-before-expect
Diffstat (limited to 'spec/javascripts/droplab')
-rw-r--r-- | spec/javascripts/droplab/plugins/ajax_spec.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/javascripts/droplab/plugins/ajax_spec.js b/spec/javascripts/droplab/plugins/ajax_spec.js index 085f25764fe..69fe431e1b9 100644 --- a/spec/javascripts/droplab/plugins/ajax_spec.js +++ b/spec/javascripts/droplab/plugins/ajax_spec.js @@ -8,6 +8,7 @@ describe('Ajax', () => { describe('is not configured', () => { it('passes the data through', () => { const data = ['data']; + expect(Ajax.preprocessing(config, data)).toEqual(data); }); }); @@ -22,13 +23,17 @@ describe('Ajax', () => { it('calls preprocessing', () => { Ajax.preprocessing(config, []); + expect(config.preprocessing.calls.count()).toBe(1); }); it('overrides AjaxCache', () => { - spyOn(AjaxCache, 'override').and.callFake((endpoint, results) => expect(results).toEqual(processedArray)); + spyOn(AjaxCache, 'override').and.callFake((endpoint, results) => { + expect(results).toEqual(processedArray); + }); Ajax.preprocessing(config, []); + expect(AjaxCache.override.calls.count()).toBe(1); }); }); |