From 8a25da81fbc596c5ac3b842276dbc7c13e327eed Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Tue, 2 May 2017 14:05:09 +0430 Subject: [PATCH] [test] update fixtures store to return a function --- test/fixtures/basic/store/foo/bar.js | 6 ++++-- test/fixtures/with-config/store/index.js | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/test/fixtures/basic/store/foo/bar.js b/test/fixtures/basic/store/foo/bar.js index 43b5268f5e..c8163e596a 100644 --- a/test/fixtures/basic/store/foo/bar.js +++ b/test/fixtures/basic/store/foo/bar.js @@ -1,5 +1,7 @@ -export const state = { - baz: 'Vuex Nested Modules' +export const state = () => { + return { + baz: 'Vuex Nested Modules' + } } export const getters = { diff --git a/test/fixtures/with-config/store/index.js b/test/fixtures/with-config/store/index.js index e5ad937c65..20b0601fcf 100644 --- a/test/fixtures/with-config/store/index.js +++ b/test/fixtures/with-config/store/index.js @@ -3,7 +3,7 @@ import Vuex from 'vuex' Vue.use(Vuex) -const store = new Vuex.Store({ +const store = () => new Vuex.Store({ state: { counter: 0 },