Skip to content

Commit

Permalink
Add test for no-side-effects-in-computed-properties rule to check #1282
Browse files Browse the repository at this point in the history
… (#1283)
  • Loading branch information
ota-meshi committed Aug 26, 2020
1 parent 48d82c0 commit 4331491
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/lib/rules/no-side-effects-in-computed-properties.js
Expand Up @@ -180,6 +180,16 @@ ruleTester.run('no-side-effects-in-computed-properties', rule, {
el: test.el
})`,
parserOptions
},
{
code: `Vue.component('test', {
computed: {
test () {
return [...this.items].reverse()
},
}
})`,
parserOptions
}
],
invalid: [
Expand Down

0 comments on commit 4331491

Please sign in to comment.