Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4f5acfd

Browse files
authored
test(no-computed-properties-in-data): make tests more strict (#2864)
1 parent 52bd588 commit 4f5acfd

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

‎tests/lib/rules/no-computed-properties-in-data.js‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ tester.run('no-computed-properties-in-data', rule, {
9797
message:
9898
'The computed property cannot be used in `data()` because it is before initialization.',
9999
line: 5,
100-
column: 23
100+
column: 23,
101+
endLine: 5,
102+
endColumn: 31
101103
}
102104
]
103105
},
@@ -122,7 +124,9 @@ tester.run('no-computed-properties-in-data', rule, {
122124
message:
123125
'The computed property cannot be used in `data()` because it is before initialization.',
124126
line: 6,
125-
column: 23
127+
column: 23,
128+
endLine: 6,
129+
endColumn: 29
126130
}
127131
]
128132
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /