mirror of
https://github.com/tenrok/vue-select.git
synced 2026-06-19 09:50:33 +03:00
@@ -1,9 +1,9 @@
|
||||
import Vue from 'vue'
|
||||
import { defineComponent } from 'vue'
|
||||
import { selectWithProps } from '../helpers'
|
||||
|
||||
describe('Components API', () => {
|
||||
it('swap the Deselect component', () => {
|
||||
const Deselect = Vue.component('Deselect', {
|
||||
const Deselect = defineComponent('Deselect', {
|
||||
render(createElement) {
|
||||
return createElement('button', 'remove')
|
||||
},
|
||||
@@ -11,11 +11,11 @@ describe('Components API', () => {
|
||||
|
||||
const Select = selectWithProps({ components: { Deselect } })
|
||||
|
||||
expect(Select.findComponent(Deselect)).toBeTruthy()
|
||||
expect(Select.find(Deselect)).toBeTruthy()
|
||||
})
|
||||
|
||||
it('swap the OpenIndicator component', () => {
|
||||
const OpenIndicator = Vue.component('OpenIndicator', {
|
||||
const OpenIndicator = defineComponent('OpenIndicator', {
|
||||
render(createElement) {
|
||||
return createElement('i', '^')
|
||||
},
|
||||
@@ -23,6 +23,6 @@ describe('Components API', () => {
|
||||
|
||||
const Select = selectWithProps({ components: { OpenIndicator } })
|
||||
|
||||
expect(Select.findComponent(OpenIndicator)).toBeTruthy()
|
||||
expect(Select.find(OpenIndicator)).toBeTruthy()
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user