Skip to content

Commit 98103d6

Browse files
committed
improvement(components): add Sync and Async components for testing
1 parent 808fe89 commit 98103d6

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<template>
2+
<div />
3+
</template>
4+
5+
<script>
6+
export default {
7+
async beforeMount() {
8+
await new Promise(resolve => resolve())
9+
throw new Error()
10+
}
11+
}
12+
</script>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<template>
2+
<div />
3+
</template>
4+
5+
<script>
6+
export default {
7+
beforeMount() {
8+
throw new Error()
9+
}
10+
}
11+
</script>

0 commit comments

Comments
 (0)