diff options
author | Tim Zallmann <tzallmann@gitlab.com> | 2017-10-31 12:18:30 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-10-31 12:18:30 +0300 |
commit | 980f29716f86a261e28dbc69de157a53c3eadb42 (patch) | |
tree | 23dc99cb50b55ef3ff67d450daef4bc1942ad384 /spec/javascripts/notes | |
parent | 6e6cea23e187b6c93886da4d043ea5a6fb7bfab5 (diff) |
Resolve "Convert autosize.js library to be a Yarn managed library"
Diffstat (limited to 'spec/javascripts/notes')
-rw-r--r-- | spec/javascripts/notes/components/issue_comment_form_spec.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/javascripts/notes/components/issue_comment_form_spec.js b/spec/javascripts/notes/components/issue_comment_form_spec.js index 3f659af5c3b..a26fc8f63cc 100644 --- a/spec/javascripts/notes/components/issue_comment_form_spec.js +++ b/spec/javascripts/notes/components/issue_comment_form_spec.js @@ -1,5 +1,5 @@ import Vue from 'vue'; -import autosize from 'vendor/autosize'; +import Autosize from 'autosize'; import store from '~/notes/stores'; import issueCommentForm from '~/notes/components/issue_comment_form.vue'; import { loggedOutIssueData, notesDataMock, userDataMock, issueDataMock } from '../mock_data'; @@ -97,14 +97,14 @@ describe('issue_comment_form component', () => { }); it('should resize textarea after note discarded', (done) => { - spyOn(autosize, 'update'); + spyOn(Autosize, 'update'); spyOn(vm, 'discard').and.callThrough(); vm.note = 'foo'; vm.discard(); Vue.nextTick(() => { - expect(autosize.update).toHaveBeenCalled(); + expect(Autosize.update).toHaveBeenCalled(); done(); }); }); |