Skip to content

Commit 7cb18fe

Browse files
committed
test: add test case
1 parent 60e7c48 commit 7cb18fe

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/lib/rules/no-use-computed-property-like-method.js

+14
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,20 @@ tester.run('no-use-computed-property-like-method', rule, {
404404
}
405405
</script>
406406
`
407+
},
408+
{
409+
filename: 'test.vue',
410+
code: `
411+
<script>
412+
export default {
413+
methods: {
414+
fn() {
415+
this.foo()
416+
}
417+
}
418+
}
419+
</script>
420+
`
407421
}
408422
],
409423
invalid: [

0 commit comments

Comments
 (0)