diff options
author | André Luís <aluis@gitlab.com> | 2018-07-31 22:24:16 +0300 |
---|---|---|
committer | André Luís <aluis@gitlab.com> | 2018-08-01 17:26:57 +0300 |
commit | 8047b00fb6b315bdeb86525cc05b447a8defcb54 (patch) | |
tree | aa4ad9b84d23fba8cbafde74f37e336c352e4378 /spec/javascripts/autosave_spec.js | |
parent | 677136741f58b1e159dc597da63662f29fcc1c0b (diff) |
Reapply "Merge branch '_acet-fix-mr-autosave' into 'master'"
This reverts commit bd5b177b0fc48d77b5069b112faf36d151221be7.
Diffstat (limited to 'spec/javascripts/autosave_spec.js')
-rw-r--r-- | spec/javascripts/autosave_spec.js | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/spec/javascripts/autosave_spec.js b/spec/javascripts/autosave_spec.js index 38ae5b7e00c..dcb1c781591 100644 --- a/spec/javascripts/autosave_spec.js +++ b/spec/javascripts/autosave_spec.js @@ -59,12 +59,10 @@ describe('Autosave', () => { Autosave.prototype.restore.call(autosave); - expect( - field.trigger, - ).toHaveBeenCalled(); + expect(field.trigger).toHaveBeenCalled(); }); - it('triggers native event', (done) => { + it('triggers native event', done => { autosave.field.get(0).addEventListener('change', () => { done(); }); @@ -81,9 +79,7 @@ describe('Autosave', () => { it('does not trigger event', () => { spyOn(field, 'trigger').and.callThrough(); - expect( - field.trigger, - ).not.toHaveBeenCalled(); + expect(field.trigger).not.toHaveBeenCalled(); }); }); }); |