Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
harrisong committed Dec 10, 2017
1 parent bb0c828 commit 18b291c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 43 deletions.
Binary file removed src/assets/logo.png
Binary file not shown.
43 changes: 0 additions & 43 deletions src/components/HelloWorld.vue

This file was deleted.

12 changes: 12 additions & 0 deletions test/unit/specs/Landing.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import Vue from 'vue'
import Landing from '@/components/Landing'
import router from '@/router'

describe('Landing.vue', () => {
it('should render correct contents', () => {
const Constructor = Vue.extend(Landing)
const vm = new Constructor({router}).$mount()
expect(vm.$el.querySelector('.hello h1').textContent)
.toEqual('Harrison Ng')
})
})

0 comments on commit 18b291c

Please sign in to comment.