Commit 043aa6f3 authored by Simon Knox's avatar Simon Knox

Fix eslint violations

parent 44d93b55
...@@ -113,7 +113,7 @@ describe('issue_note_form component', () => { ...@@ -113,7 +113,7 @@ describe('issue_note_form component', () => {
it('should ender edit mode', () => { it('should ender edit mode', () => {
// TODO: do not spy on vm // TODO: do not spy on vm
spyOn(wrapper.vm, 'editMyLastNote').and.callThrough(); spyOn(wrapper.vm, 'editMyLastNote').and.callThrough();
const textarea = wrapper.find('textarea'); textarea = wrapper.find('textarea');
textarea.setValue('Foo'); textarea.setValue('Foo');
textarea.trigger('keydown.up'); textarea.trigger('keydown.up');
...@@ -123,7 +123,7 @@ describe('issue_note_form component', () => { ...@@ -123,7 +123,7 @@ describe('issue_note_form component', () => {
describe('enter', () => { describe('enter', () => {
it('should save note when cmd+enter is pressed', () => { it('should save note when cmd+enter is pressed', () => {
const textarea = wrapper.find('textarea'); textarea = wrapper.find('textarea');
textarea.setValue('Foo'); textarea.setValue('Foo');
textarea.trigger('keydown.enter', { metaKey: true }); textarea.trigger('keydown.enter', { metaKey: true });
...@@ -133,7 +133,7 @@ describe('issue_note_form component', () => { ...@@ -133,7 +133,7 @@ describe('issue_note_form component', () => {
}); });
it('should save note when ctrl+enter is pressed', () => { it('should save note when ctrl+enter is pressed', () => {
const textarea = wrapper.find('textarea'); textarea = wrapper.find('textarea');
textarea.setValue('Foo'); textarea.setValue('Foo');
textarea.trigger('keydown.enter', { ctrlKey: true }); textarea.trigger('keydown.enter', { ctrlKey: true });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment