import { mount } from '@vue/test-utils' import { describe, expect, it } from 'vitest' import FileUploader from '../../components/FileUploader.vue' describe('FileUploader', () => { it('should name the accepted formats in the prompt when accept is set', () => { const wrapper = mount(FileUploader, { props: { accept: '.raw, .mzML' } }) expect(wrapper.get('.mint-file-uploader__text').text()).toBe('Drop RAW, MZML or click') }) it('should prompt for any file when accept is not set', () => { const wrapper = mount(FileUploader) expect(wrapper.get('.mint-file-uploader__text').text()).toBe('Drop any file or click') }) })