mirror of
https://github.com/tenrok/vue-select.git
synced 2026-06-22 10:30:34 +03:00
@@ -7,7 +7,7 @@ describe('Labels', () => {
|
||||
const Select = selectWithProps({
|
||||
options: [{ name: 'Foo' }],
|
||||
label: 'name',
|
||||
value: { name: 'Foo' },
|
||||
modelValue: { name: 'Foo' },
|
||||
})
|
||||
expect(Select.find('.vs__selected').text()).toBe('Foo')
|
||||
})
|
||||
@@ -29,7 +29,7 @@ describe('Labels', () => {
|
||||
|
||||
it('should display a placeholder if the value is empty', () => {
|
||||
const Select = shallowMount(VueSelect, {
|
||||
propsData: {
|
||||
props: {
|
||||
options: ['one'],
|
||||
},
|
||||
attrs: {
|
||||
@@ -66,7 +66,7 @@ describe('Labels', () => {
|
||||
xit('will not call getOptionLabel if both scoped option slots are used and a filter is provided', () => {
|
||||
const spy = spyOn(VueSelect.props.getOptionLabel, 'default')
|
||||
const Select = shallowMount(VueSelect, {
|
||||
propsData: {
|
||||
props: {
|
||||
options: [{ name: 'one' }],
|
||||
filter: () => {},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user