pythonasyncioapiasyncfastapiframeworkjsonjson-schemaopenapiopenapi3pydanticpython-typespython3redocreststarletteswaggerswagger-uiuvicornweb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
413 B
15 lines
413 B
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);
|
|
});
|
|
});
|
|
|