diff options
Diffstat (limited to 'spec/frontend/blob/file_template_mediator_spec.js')
-rw-r--r-- | spec/frontend/blob/file_template_mediator_spec.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/frontend/blob/file_template_mediator_spec.js b/spec/frontend/blob/file_template_mediator_spec.js index 907a3c97799..ece9ae27273 100644 --- a/spec/frontend/blob/file_template_mediator_spec.js +++ b/spec/frontend/blob/file_template_mediator_spec.js @@ -1,5 +1,5 @@ import { setHTMLFixture, resetHTMLFixture } from 'helpers/fixtures'; -import TemplateSelectorMediator from '~/blob/file_template_mediator'; +import FilepathFormMediator from '~/blob/filepath_form_mediator'; describe('Template Selector Mediator', () => { let mediator; @@ -14,7 +14,7 @@ describe('Template Selector Mediator', () => { beforeEach(() => { setHTMLFixture('<div class="file-editor"><input class="js-file-path-name-input" /></div>'); input = document.querySelector('.js-file-path-name-input'); - mediator = new TemplateSelectorMediator({ + mediator = new FilepathFormMediator({ editor, currentAction: jest.fn(), projectId: jest.fn(), @@ -44,7 +44,7 @@ describe('Template Selector Mediator', () => { ({ name, newName, shouldDispatch }) => { input.value = name; const eventHandler = jest.fn(); - input.addEventListener('change', eventHandler); + input.addEventListener('input', eventHandler); mediator.setFilename(newName); if (shouldDispatch) { |