2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-04 06:32:23 +03:00

fix(components): fix typo

This commit is contained in:
Jeff
2019-12-03 09:11:10 -08:00
parent 33a8f55407
commit a353be2944
2 changed files with 12 additions and 9 deletions
+1 -1
View File
@@ -1090,7 +1090,7 @@
},
openIndicator: {
shouldDisplay: ! this.noDrop,
component: this.childComponents.openIndicator,
component: this.childComponents.OpenIndicator,
attributes: {
'ref': 'openIndicator',
'role': 'presentation',
+11 -8
View File
@@ -1,25 +1,28 @@
import Vue from 'vue';
import { selectWithProps } from '../helpers';
import { mountDefault, selectWithProps } from '../helpers';
import components from '../../src/components/childComponents';
describe('Components API', () => {
it('uses the default components', () => {
const Select = mountDefault();
expect(Select.contains(components.Deselect)).toBeTruthy();
expect(Select.contains(components.OpenIndicator)).toBeTruthy();
});
it('swap the Deselect component', () => {
const Deselect = Vue.component('Deselect', {
render (createElement) {
return createElement('span', 'remove');
},
render: (createElement) => createElement('span', 'remove'),
});
const Select = selectWithProps({components: {Deselect}});
const Select = selectWithProps({components: {Deselect}, multiple: true});
expect(Select.contains(Deselect)).toBeTruthy();
});
it('swap the OpenIndicator component', () => {
const OpenIndicator = Vue.component('OpenIndicator', {
render (createElement) {
return createElement('i', '^');
},
render: (createElement) => createElement('i', '^'),
});
const Select = selectWithProps({components: {OpenIndicator}});