🎉 First commit, from couchbase generator, basic changes
not tested / updated yet
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import { shallowMount } from '@vue/test-utils';
|
||||
import UploadButton from '@/components/UploadButton.vue';
|
||||
import '@/plugins/vuetify';
|
||||
|
||||
describe('UploadButton.vue', () => {
|
||||
it('renders props.title when passed', () => {
|
||||
const title = 'upload a file';
|
||||
const wrapper = shallowMount(UploadButton, {
|
||||
slots: {
|
||||
default: title,
|
||||
},
|
||||
});
|
||||
expect(wrapper.text()).toMatch(title);
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user