[improvement] optimize eslint-disable (#4070)

This commit is contained in:
neverland
2019-08-08 20:01:41 +08:00
committed by GitHub
parent 5777762249
commit c74d90c561
13 changed files with 9 additions and 20 deletions
+1 -4
View File
@@ -1,4 +1,3 @@
/* eslint-disable object-shorthand */
import Search from '..';
import { mount } from '../../../test/utils';
@@ -99,9 +98,7 @@ test('right-icon prop', () => {
test('right-icon slot', () => {
const wrapper = mount(Search, {
scopedSlots: {
'right-icon'() {
return 'Custom Right Icon';
}
'right-icon': () => 'Custom Right Icon'
}
});