Permalink
Browse files

create new component called ClickMeButton

  • Loading branch information...
trollepierre committed May 6, 2017
1 parent 6c80506 commit c7747996eb5c7bbf328691ef588cdc617a9ddbce
Showing with 24 additions and 0 deletions.
  1. +9 −0 src/components/ClickMeButton.vue
  2. +15 −0 test/unit/specs/ClickMeButton.spec.js
@@ -0,0 +1,9 @@
<template>
<div class="clickMeButton"></div>
</template>
<script>
export default {
name: 'clickMeButton'
}
</script>
@@ -0,0 +1,15 @@
import Vue from 'vue'
import ClickMeButton from '@/components/ClickMeButton'
describe('ClickMeButton.vue', () => {
let vm
beforeEach(function () {
const Constructor = Vue.extend(ClickMeButton)
vm = new Constructor().$mount()
})
it('should check the name of my vue', () => {
expect(vm.$options.name).to.equal('clickMeButton')
})
})

0 comments on commit c774799

Please sign in to comment.