mirror of
https://github.com/tenrok/vue-select.git
synced 2026-06-22 10:30:34 +03:00
Killed production tip in spec
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import vSelect from 'src/components/Select.vue'
|
import vSelect from 'src/components/Select.vue'
|
||||||
import pointerScroll from 'src/mixins/pointerScroll.js'
|
import pointerScroll from 'src/mixins/pointerScroll.js'
|
||||||
|
Vue.config.productionTip = false
|
||||||
// http://vue-loader.vuejs.org/en/workflow/testing-with-mocks.html
|
// http://vue-loader.vuejs.org/en/workflow/testing-with-mocks.html
|
||||||
const Mock = require('!!vue?inject!src/components/Select.vue')
|
const Mock = require('!!vue?inject!src/components/Select.vue')
|
||||||
|
|
||||||
@@ -1189,11 +1189,11 @@ describe('Select.vue', () => {
|
|||||||
options: ['one', 'two', 'three']
|
options: ['one', 'two', 'three']
|
||||||
}
|
}
|
||||||
}).$mount()
|
}).$mount()
|
||||||
|
|
||||||
vm.$children[0].open = true
|
vm.$children[0].open = true
|
||||||
vm.$refs.select.search = "t"
|
vm.$refs.select.search = "t"
|
||||||
expect(vm.$refs.select.search).toEqual('t')
|
expect(vm.$refs.select.search).toEqual('t')
|
||||||
|
|
||||||
vm.$children[0].onSearchBlur()
|
vm.$children[0].onSearchBlur()
|
||||||
Vue.nextTick(() => {
|
Vue.nextTick(() => {
|
||||||
expect(vm.$refs.select.search).toEqual('')
|
expect(vm.$refs.select.search).toEqual('')
|
||||||
|
|||||||
Reference in New Issue
Block a user