mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
* add vuex, cleanup client directory and create example components * disale sample unit test * disable import for non existing file * correct regexp for unit tests, add simple test to avoid error, add babel-polyfill for Vuex * add line wrongly removed, update regexp
17 lines
423 B
JavaScript
17 lines
423 B
JavaScript
import Vue from 'vue';
|
|
// import Hello from 'src/components/Hello';
|
|
|
|
describe('Hello.vue', () => {
|
|
xit('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('Hello Vue!');
|
|
});
|
|
|
|
it('should make assertions', () => {
|
|
expect(true).to.equal(true);
|
|
});
|
|
});
|