Skip to content

Commit ab0eaa5

Browse files
committed
Add testcase
1 parent 0e036ec commit ab0eaa5

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tests/lib/rules/no-async-in-computed-properties.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,23 @@ ruleTester.run('no-async-in-computed-properties', rule, {
182182
`,
183183
parserOptions
184184
},
185+
{
186+
filename: 'test.vue',
187+
code: `
188+
export default {
189+
computed: {
190+
foo() {
191+
return this.bar
192+
? {
193+
baz:() => Promise.resolve(1)
194+
}
195+
: {}
196+
}
197+
}
198+
}
199+
`,
200+
parserOptions
201+
},
185202
{
186203
filename: 'test.vue',
187204
code: `

0 commit comments

Comments
 (0)