better lint
This commit is contained in:
parent
e554eeeef6
commit
18d8ea6b63
123 changed files with 362 additions and 205 deletions
3
test/fixtures/setup_test.js
vendored
3
test/fixtures/setup_test.js
vendored
|
|
@ -2,9 +2,10 @@ import { config } from '@vue/test-utils'
|
|||
import { createMemoryHistory, createRouter } from 'vue-router'
|
||||
import VueVirtualScroller from 'vue-virtual-scroller'
|
||||
|
||||
import routes from 'src/boot/routes'
|
||||
import makeMockStore from './mock_store'
|
||||
|
||||
import routes from 'src/boot/routes'
|
||||
|
||||
export const $t = (msg) => msg
|
||||
const $i18n = { t: (msg) => msg }
|
||||
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ import { mount } from '@vue/test-utils'
|
|||
import { createStore } from 'vuex'
|
||||
|
||||
import UserProfile from 'src/components/user_profile/user_profile.vue'
|
||||
|
||||
import { getters } from 'src/modules/users.js'
|
||||
import backendInteractorService from 'src/services/backend_interactor_service/backend_interactor_service.js'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,10 @@
|
|||
import { createPinia, setActivePinia } from 'pinia'
|
||||
import { createStore } from 'vuex'
|
||||
|
||||
import apiModule from 'src/modules/api.js'
|
||||
import { useListsStore } from 'src/stores/lists.js'
|
||||
|
||||
import apiModule from 'src/modules/api.js'
|
||||
|
||||
setActivePinia(createPinia())
|
||||
const store = useListsStore()
|
||||
window.vuex = createStore({
|
||||
|
|
|
|||
|
|
@ -3,13 +3,14 @@ import { createPinia, setActivePinia } from 'pinia'
|
|||
import { createApp } from 'vue'
|
||||
import { createStore } from 'vuex'
|
||||
|
||||
import { useOAuthStore } from 'src/stores/oauth.js'
|
||||
import {
|
||||
authApis,
|
||||
injectMswToTest,
|
||||
testServer,
|
||||
} from '/test/fixtures/mock_api.js'
|
||||
|
||||
import { useOAuthStore } from 'src/stores/oauth.js'
|
||||
|
||||
const test = injectMswToTest(authApis)
|
||||
|
||||
const vuexStore = createStore({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue