2
0
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:
Unknown
2017-10-26 12:20:04 -04:00
parent a7562402c7
commit 10e8516639
+3 -3
View File
@@ -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('')