Skip to content

Commit 465c4c8

Browse files
committed
Improve test
1 parent 1c94e36 commit 465c4c8

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

tests/lib/rules/computed-property-return.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ ruleTester.run('computed-property-return', rule, {
7575
`,
7676
parserOptions: { ecmaVersion: 8, sourceType: 'module' },
7777
errors: [{
78-
message: 'Expected to return a value in "foo" computed property.'
78+
message: 'Expected to return a value in "foo" computed property.',
79+
line: 4
7980
}]
8081
},
8182
{
@@ -90,7 +91,8 @@ ruleTester.run('computed-property-return', rule, {
9091
`,
9192
parserOptions: { ecmaVersion: 6, sourceType: 'module' },
9293
errors: [{
93-
message: 'Expected to return a value in "foo" computed property.'
94+
message: 'Expected to return a value in "foo" computed property.',
95+
line: 4
9496
}]
9597
},
9698
{
@@ -108,7 +110,8 @@ ruleTester.run('computed-property-return', rule, {
108110
`,
109111
parserOptions: { ecmaVersion: 6, sourceType: 'module' },
110112
errors: [{
111-
message: 'Expected to return a value in "foo" computed property.'
113+
message: 'Expected to return a value in "foo" computed property.',
114+
line: 4
112115
}]
113116
},
114117
{
@@ -127,7 +130,8 @@ ruleTester.run('computed-property-return', rule, {
127130
`,
128131
parserOptions: { ecmaVersion: 8, sourceType: 'module' },
129132
errors: [{
130-
message: 'Expected to return a value in "foo" computed property.'
133+
message: 'Expected to return a value in "foo" computed property.',
134+
line: 7
131135
}]
132136
}
133137
]

0 commit comments

Comments
 (0)