Skip to content

Commit 9c4db99

Browse files
committed
update tests
1 parent 705c03d commit 9c4db99

File tree

2 files changed

+2
-2
lines changed
  • packages/svelte/tests/validator/samples

2 files changed

+2
-2
lines changed

packages/svelte/tests/validator/samples/custom-element-props-identifier-rest/warnings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"column": 15,
1818
"line": 4
1919
},
20-
"message": "Using an identifier or a rest element as the declarator for `$props` when compiling to custom elements without declaring `props` in the component options means that Svelte can't know what to expose as properties on the DOM element. Consider explicitly destructuring all the props or adding the `customElement.props` option.",
20+
"message": "Using a rest element or a non-destructured declaration with `$props()` means that Svelte can't infer what properties to expose when creating a custom element. Consider destructuring all the props or explicitly specifying the `customElement.props` option.",
2121
"start": {
2222
"column": 7,
2323
"line": 4

packages/svelte/tests/validator/samples/custom-element-props-identifier/warnings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"column": 10,
1818
"line": 4
1919
},
20-
"message": "Using an identifier or a rest element as the declarator for `$props` when compiling to custom elements without declaring `props` in the component options means that Svelte can't know what to expose as properties on the DOM element. Consider explicitly destructuring all the props or adding the `customElement.props` option.",
20+
"message": "Using a rest element or a non-destructured declaration with `$props()` means that Svelte can't infer what properties to expose when creating a custom element. Consider destructuring all the props or explicitly specifying the `customElement.props` option.",
2121
"start": {
2222
"column": 5,
2323
"line": 4

0 commit comments

Comments
 (0)