Skip to content

Commit 4fbd7e5

Browse files
wagenetclaude
andcommitted
Collapse invisible whitespace in template-no-deprecated tests
Remove leading newlines and indentation from template literal test cases so character positions in error messages are not offset by invisible whitespace. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
1 parent a810190 commit 4fbd7e5

1 file changed

Lines changed: 7 additions & 16 deletions

File tree

tests/lib/rules/template-no-deprecated.js

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,13 @@ const ruleTester = new RuleTester({
1717
ruleTester.run('template-no-deprecated', rule, {
1818
valid: [
1919
// Non-deprecated component reference
20-
`
21-
import SomeComponent from './some-component';
22-
<template><SomeComponent /></template>
23-
`,
24-
// Plain HTML tag — never reported
25-
`
26-
<template><div></div></template>
27-
`,
28-
// this.something — not a scope reference
29-
`
30-
<template>{{this.foo}}</template>
31-
`,
32-
// Undefined reference — no def, skip
33-
`
34-
<template>{{undefinedThing}}</template>
35-
`,
20+
`import SomeComponent from './some-component';\n<template><SomeComponent /></template>`,
21+
// Plain HTML tag -- never reported
22+
`<template><div></div></template>`,
23+
// this.something -- not a scope reference
24+
`<template>{{this.foo}}</template>`,
25+
// Undefined reference -- no def, skip
26+
`<template>{{undefinedThing}}</template>`,
3627
],
3728
invalid: [],
3829
});

0 commit comments

Comments
 (0)