2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-16 09:10:33 +03:00

initial commit

This commit is contained in:
Jeff Sagal
2016-03-01 21:07:16 -08:00
commit 5d2038caf6
13 changed files with 948 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
/* global describe, it, expect */
import Vue from 'vue'
import Hello from '../../src/components/Hello.vue'
describe('Hello.vue', () => {
it('should render correct contents', () => {
const vm = new Vue({
template: '<div><hello></hello></div>',
components: { Hello }
}).$mount()
expect(vm.$el.querySelector('.hello h1').textContent).toBe('Hello World!')
})
})
// also see example testing a component with mocks at
// https://github.com/vuejs/vueify-example/blob/master/test/unit/a.spec.js#L22-L43