File tree 2 files changed +4
-5
lines changed 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ defineOptions({ name: 'FooApp' })
188
188
)
189
189
} )
190
190
191
- it ( 'should report an error with two defineProps' , ( ) => {
191
+ it ( 'should emit an error with two defineProps' , ( ) => {
192
192
expect ( ( ) =>
193
193
compile ( `
194
194
<script setup>
@@ -199,7 +199,7 @@ defineOptions({ name: 'FooApp' })
199
199
) . toThrowError ( '[@vue/compiler-sfc] duplicate defineOptions() call' )
200
200
} )
201
201
202
- it ( 'should report an error with props or emits property' , ( ) => {
202
+ it ( 'should emit an error with props or emits property' , ( ) => {
203
203
expect ( ( ) =>
204
204
compile ( `
205
205
<script setup>
@@ -221,7 +221,7 @@ defineOptions({ name: 'FooApp' })
221
221
)
222
222
} )
223
223
224
- it ( 'should report an error with type generic' , ( ) => {
224
+ it ( 'should emit an error with type generic' , ( ) => {
225
225
expect ( ( ) =>
226
226
compile ( `
227
227
<script setup lang="ts">
Original file line number Diff line number Diff line change @@ -1243,8 +1243,7 @@ export function compileScript(
1243
1243
if ( decl . init ) {
1244
1244
if ( processDefineOptions ( decl . init ) ) {
1245
1245
error (
1246
- `${ DEFINE_OPTIONS } () A has no return value, ` +
1247
- `it cannot be assigned a value.` ,
1246
+ `${ DEFINE_OPTIONS } () has no returning value, it cannot be assigned.` ,
1248
1247
node
1249
1248
)
1250
1249
}
You can’t perform that action at this time.
0 commit comments