mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
Added getters to tests
This commit is contained in:
parent
0308f13dab
commit
ebd95280df
6
test/fixtures/basic/store/foo/blarg.js
vendored
6
test/fixtures/basic/store/foo/blarg.js
vendored
@ -1,3 +1,9 @@
|
||||
export const state = () => ({
|
||||
val: 1
|
||||
})
|
||||
|
||||
export const getters = {
|
||||
getVal(state) {
|
||||
return 100
|
||||
}
|
||||
}
|
||||
|
6
test/fixtures/basic/store/foo/blarg/index.js
vendored
6
test/fixtures/basic/store/foo/blarg/index.js
vendored
@ -1,3 +1,9 @@
|
||||
export const state = () => ({
|
||||
val: 2
|
||||
})
|
||||
|
||||
export const getters = {
|
||||
getVal(state) {
|
||||
return 99
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user