Permalink
Browse files

add button inside ClickMeButton.vue

  • Loading branch information...
trollepierre committed May 6, 2017
1 parent c774799 commit 94c6a1115bae664ffa4fb32581112a80499c81bd
Showing with 8 additions and 1 deletion.
  1. +3 −1 src/components/ClickMeButton.vue
  2. +5 −0 test/unit/specs/ClickMeButton.spec.js
@@ -1,5 +1,7 @@
<template>
<div class="clickMeButton"></div>
<div class="clickMeButton">
<button>Click Me Button</button>
</div>
</template>
<script>
@@ -12,4 +12,9 @@ describe('ClickMeButton.vue', () => {
it('should check the name of my vue', () => {
expect(vm.$options.name).to.equal('clickMeButton')
})
it('should render button with text Click Me Button', () => {
expect(vm.$el.querySelector('.clickMeButton button').textContent)
.to.equal('Click Me Button')
})
})

0 comments on commit 94c6a11

Please sign in to comment.