diff --git a/packages/compiler-sfc/__tests__/parse.spec.ts b/packages/compiler-sfc/__tests__/parse.spec.ts index 2c640853b1a..fff6cf3c29f 100644 --- a/packages/compiler-sfc/__tests__/parse.spec.ts +++ b/packages/compiler-sfc/__tests__/parse.spec.ts @@ -111,10 +111,26 @@ h1 { color: red } ) }) - test('should keep template nodes with no content', () => { + test('should parse correct range for blocks with no content (self closing)', () => { const { descriptor } = parse(`