Skip to content

Commit 91790a3

Browse files
committed
fix some tests
1 parent 461918d commit 91790a3

File tree

1 file changed

+9
-19
lines changed

1 file changed

+9
-19
lines changed

tests/lib/rules/no-undef-properties.js

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -592,13 +592,11 @@ tester.run('no-undef-properties', rule, {
592592
import { mapActions } from 'Vuex';
593593
594594
export default {
595-
computed: {
595+
methods: {
596596
...mapActions({
597597
a: 'a',
598598
b: 'b',
599-
})
600-
},
601-
methods: {
599+
}),
602600
c() {return this.a()},
603601
d() {return this.b()},
604602
}
@@ -616,13 +614,11 @@ tester.run('no-undef-properties', rule, {
616614
import { mapMutations } from 'Vuex';
617615
618616
export default {
619-
computed: {
617+
methods: {
620618
...mapMutations({
621619
a: 'a',
622620
b: 'b',
623-
})
624-
},
625-
methods: {
621+
}),
626622
c() {return this.a()},
627623
d() {return this.b()},
628624
}
@@ -640,10 +636,8 @@ tester.run('no-undef-properties', rule, {
640636
import { mapActions } from 'Vuex';
641637
642638
export default {
643-
computed: {
644-
...mapActions(['a', 'b'])
645-
},
646-
methods: {
639+
methods: {
640+
...mapActions(['a', 'b']),
647641
c() {return this.a()},
648642
d() {return this.b()},
649643
}
@@ -661,10 +655,8 @@ tester.run('no-undef-properties', rule, {
661655
import { mapMutations } from 'Vuex';
662656
663657
export default {
664-
computed: {
665-
...mapMutations(['a', 'b'])
666-
},
667658
methods: {
659+
...mapMutations(['a', 'b']),
668660
c() {return this.a()},
669661
d() {return this.b()},
670662
}
@@ -799,10 +791,8 @@ tester.run('no-undef-properties', rule, {
799791
import { useStore } from '../store'
800792
801793
export default {
802-
computed: {
803-
...mapActions(useStore, ['a', 'b'])
804-
},
805-
methods: {
794+
methods: {
795+
...mapActions(useStore, ['a', 'b']),
806796
c() {return this.a()},
807797
d() {return this.b()},
808798
}

0 commit comments

Comments
 (0)