chore: prettier source code
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@ const [createComponent, bem, t] = createNamespace('list');
|
||||
|
||||
export default createComponent({
|
||||
mixins: [
|
||||
BindEventMixin(function(bind) {
|
||||
BindEventMixin(function (bind) {
|
||||
if (!this.scroller) {
|
||||
this.scroller = getScroller(this.$el);
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ import { mount, later, mockGetBoundingClientRect } from '../../../test';
|
||||
test('load event', async () => {
|
||||
const wrapper = mount(List);
|
||||
|
||||
wrapper.vm.$on('input', value => {
|
||||
wrapper.vm.$on('input', (value) => {
|
||||
wrapper.vm.loading = value;
|
||||
});
|
||||
|
||||
@@ -33,7 +33,7 @@ test('error loaded, click error-text and reload', async () => {
|
||||
expect(wrapper.emitted('input')).toBeFalsy();
|
||||
|
||||
// simulate the behavior of clicking error-text
|
||||
wrapper.vm.$on('update:error', val => {
|
||||
wrapper.vm.$on('update:error', (val) => {
|
||||
wrapper.setProps({
|
||||
error: val,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user