Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: rename test
  • Loading branch information
taku-y-9308 committed May 2, 2024
commit 0d88f1925ca30cd556143ee8bd29b11e5a4db2f5
4 changes: 3 additions & 1 deletion tests/mount.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ describe('mount: general tests', () => {

expect(wrapper.html()).toBe('<div>hello</div>')
})
it('if an error is thrown during mounting, the first error is thrown.', () => {

it('should throw the first error encountered when mounting the component', () => {
const ThrowingComponent = defineComponent({
setup() {
throw new Error('Boom!')
Expand All @@ -37,6 +38,7 @@ describe('mount: general tests', () => {

expect(() => mount(ThrowingComponent)).toThrowError('Boom!')
})

it('should not warn on readonly hasOwnProperty when mounting a component', () => {
const spy = vi.spyOn(console, 'warn').mockImplementation(() => {})

Expand Down