mirror of
https://github.com/tenrok/vue-select.git
synced 2026-06-22 10:30:34 +03:00
fix(components): fix typo
This commit is contained in:
@@ -1090,7 +1090,7 @@
|
|||||||
},
|
},
|
||||||
openIndicator: {
|
openIndicator: {
|
||||||
shouldDisplay: ! this.noDrop,
|
shouldDisplay: ! this.noDrop,
|
||||||
component: this.childComponents.openIndicator,
|
component: this.childComponents.OpenIndicator,
|
||||||
attributes: {
|
attributes: {
|
||||||
'ref': 'openIndicator',
|
'ref': 'openIndicator',
|
||||||
'role': 'presentation',
|
'role': 'presentation',
|
||||||
|
|||||||
@@ -1,25 +1,28 @@
|
|||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
import { selectWithProps } from '../helpers';
|
import { mountDefault, selectWithProps } from '../helpers';
|
||||||
|
import components from '../../src/components/childComponents';
|
||||||
|
|
||||||
describe('Components API', () => {
|
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', () => {
|
it('swap the Deselect component', () => {
|
||||||
const Deselect = Vue.component('Deselect', {
|
const Deselect = Vue.component('Deselect', {
|
||||||
render (createElement) {
|
render: (createElement) => createElement('span', 'remove'),
|
||||||
return createElement('span', 'remove');
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const Select = selectWithProps({components: {Deselect}});
|
const Select = selectWithProps({components: {Deselect}, multiple: true});
|
||||||
|
|
||||||
expect(Select.contains(Deselect)).toBeTruthy();
|
expect(Select.contains(Deselect)).toBeTruthy();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('swap the OpenIndicator component', () => {
|
it('swap the OpenIndicator component', () => {
|
||||||
const OpenIndicator = Vue.component('OpenIndicator', {
|
const OpenIndicator = Vue.component('OpenIndicator', {
|
||||||
render (createElement) {
|
render: (createElement) => createElement('i', '^'),
|
||||||
return createElement('i', '^');
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const Select = selectWithProps({components: {OpenIndicator}});
|
const Select = selectWithProps({components: {OpenIndicator}});
|
||||||
|
|||||||
Reference in New Issue
Block a user