diff options
| author | Roger Braun <roger@rogerbraun.net> | 2016-10-26 16:46:32 +0200 |
|---|---|---|
| committer | Roger Braun <roger@rogerbraun.net> | 2016-10-26 16:46:32 +0200 |
| commit | 191c02af1ebfc7e6c53dc88d97c4e3ca23fbea8b (patch) | |
| tree | b3a132f8eba6ee92d6ec2a581f0bf33e1852010b /test/unit/specs/Hello.spec.js | |
Basic skeleton
Diffstat (limited to 'test/unit/specs/Hello.spec.js')
| -rw-r--r-- | test/unit/specs/Hello.spec.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/unit/specs/Hello.spec.js b/test/unit/specs/Hello.spec.js new file mode 100644 index 00000000..a6965db0 --- /dev/null +++ b/test/unit/specs/Hello.spec.js @@ -0,0 +1,13 @@ +import Vue from 'vue' +import Hello from 'src/components/Hello' + +describe('Hello.vue', () => { + it('should render correct contents', () => { + const vm = new Vue({ + el: document.createElement('div'), + render: (h) => h(Hello) + }) + expect(vm.$el.querySelector('.hello h1').textContent) + .to.equal('Welcome to Your Vue.js App') + }) +}) |
