21 lines
531 B
JavaScript
21 lines
531 B
JavaScript
import Vue from 'vue';
|
|
import StartupError from '@/components/StartupError';
|
|
|
|
Vue.mixin({
|
|
computed: {
|
|
$t() {
|
|
return (key, options) => key;
|
|
},
|
|
},
|
|
});
|
|
|
|
describe('StartupError.vue', () => {
|
|
it('should render correct contents', () => {
|
|
const vm = new Vue({
|
|
el: document.createElement('div'),
|
|
render: (h) => h(StartupError, { props: { error: 'some error' } }),
|
|
});
|
|
expect(vm.$el.querySelector('div').textContent).toEqual('some error');
|
|
});
|
|
});
|