File tree 1 file changed +11
-8
lines changed
1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -85,10 +85,10 @@ describe('loader', () => {
85
85
86
86
if ( isSvelte5Plus ) {
87
87
expect ( err . message ) . to . eql ( d `
88
- CompileError: Unexpected block closing tag
89
- (block_unexpected_close)
90
- test/fixtures/parse-error.html1:22
91
- ` ) ;
88
+ CompileError: block_unexpected_close: Unexpected block closing tag
89
+ test/fixtures/parse-error.html:1:22
90
+ 1: <p>Count: {count}</p>{/if}
91
+ ^ ` ) ;
92
92
} else {
93
93
expect ( err . message ) . to . eql ( d `
94
94
ParseError: Unexpected block closing tag (1:23)
@@ -112,10 +112,13 @@ describe('loader', () => {
112
112
113
113
if ( isSvelte5Plus ) {
114
114
expect ( err . message . trim ( ) . replace ( / \r / g, '' ) ) . to . eql ( d `
115
- CompileError: A component cannot have a default export
116
- (module_illegal_default_export)
117
- test/fixtures/validation-error.html2:1
118
- ` ) ;
115
+ CompileError: module_illegal_default_export: A component cannot have a default export
116
+ test/fixtures/validation-error.html:2:1
117
+ 1: <script>
118
+ 2: export default {};
119
+ ^
120
+ 3: </script>
121
+ 4:` ) ;
119
122
} else {
120
123
expect ( err . message . trim ( ) . replace ( / \r / g, '' ) ) . to . eql ( d `
121
124
ValidationError: A component cannot have a default export (2:1)
You can’t perform that action at this time.
0 commit comments