diff options
Diffstat (limited to 'spec/javascripts/pipelines/nav_controls_spec.js')
-rw-r--r-- | spec/javascripts/pipelines/nav_controls_spec.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/javascripts/pipelines/nav_controls_spec.js b/spec/javascripts/pipelines/nav_controls_spec.js index f4cdc1d21ae..d6232f5c567 100644 --- a/spec/javascripts/pipelines/nav_controls_spec.js +++ b/spec/javascripts/pipelines/nav_controls_spec.js @@ -69,11 +69,11 @@ describe('Pipelines Nav Controls', () => { }); it('should emit postAction event when reset runner cache button is clicked', () => { - spyOn(component, '$on'); + spyOn(component, '$emit'); component.$el.querySelector('.js-clear-cache').click(); - expect(component.$on).toHaveBeenCalledWith('postAction', 'foo'); + expect(component.$emit).toHaveBeenCalledWith('resetRunnersCache', 'foo'); }); }); }); |