update
This commit is contained in:
13
src/App.test.ts
Normal file
13
src/App.test.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import { beforeEach, describe, expect, it } from 'vitest'
|
||||
import App from './App.vue'
|
||||
|
||||
describe('App', () => {
|
||||
beforeEach(() => localStorage.clear())
|
||||
|
||||
it('starts with the multi-file upload screen', () => {
|
||||
const wrapper = mount(App)
|
||||
expect(wrapper.get('input[type="file"]').attributes('multiple')).toBeDefined()
|
||||
expect(wrapper.text()).toContain('上传 Markdown')
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user