biome check --write
This commit is contained in:
parent
9262e803ec
commit
b05a501236
225 changed files with 1177 additions and 1266 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import routes from 'src/boot/routes'
|
||||
import { createRouter, createMemoryHistory } from 'vue-router'
|
||||
import { createMemoryHistory, createRouter } from 'vue-router'
|
||||
import { createStore } from 'vuex'
|
||||
|
||||
const store = createStore({
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { mount, flushPromises } from '@vue/test-utils'
|
||||
import { nextTick } from 'vue'
|
||||
import { flushPromises, mount } from '@vue/test-utils'
|
||||
import PostStatusForm from 'src/components/post_status_form/post_status_form.vue'
|
||||
import { mountOpts, waitForEvent, $t } from '../../../fixtures/setup_test'
|
||||
import { nextTick } from 'vue'
|
||||
import { $t, mountOpts, waitForEvent } from '../../../fixtures/setup_test'
|
||||
|
||||
const autoSaveOrNot = (caseFn, caseTitle, runFn) => {
|
||||
caseFn(`${caseTitle} with auto-save`, function () {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { h } from 'vue'
|
||||
import { shallowMount } from '@vue/test-utils'
|
||||
import EmojiInput from 'src/components/emoji_input/emoji_input.vue'
|
||||
import vClickOutside from 'click-outside-vue3'
|
||||
import EmojiInput from 'src/components/emoji_input/emoji_input.vue'
|
||||
import { h } from 'vue'
|
||||
|
||||
const generateInput = (value, padEmoji = true) => {
|
||||
const wrapper = shallowMount(EmojiInput, {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
import { mount } from '@vue/test-utils'
|
||||
import { createStore } from 'vuex'
|
||||
import UserProfile from 'src/components/user_profile/user_profile.vue'
|
||||
import backendInteractorService from 'src/services/backend_interactor_service/backend_interactor_service.js'
|
||||
import { getters } from 'src/modules/users.js'
|
||||
import backendInteractorService from 'src/services/backend_interactor_service/backend_interactor_service.js'
|
||||
import { createStore } from 'vuex'
|
||||
|
||||
const mutations = {
|
||||
clearTimeline: () => {},
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { setActivePinia, createPinia, defineStore } from 'pinia'
|
||||
import { createApp } from 'vue'
|
||||
import { flushPromises } from '@vue/test-utils'
|
||||
import { createPinia, defineStore, setActivePinia } from 'pinia'
|
||||
import { piniaPersistPlugin } from 'src/lib/persisted_state.js'
|
||||
import { createApp } from 'vue'
|
||||
|
||||
const app = createApp({})
|
||||
|
||||
|
|
|
|||
|
|
@ -1,19 +1,19 @@
|
|||
import { cloneDeep } from 'lodash'
|
||||
import { setActivePinia, createPinia } from 'pinia'
|
||||
import { createPinia, setActivePinia } from 'pinia'
|
||||
|
||||
import {
|
||||
VERSION,
|
||||
COMMAND_TRIM_FLAGS,
|
||||
COMMAND_TRIM_FLAGS_AND_RESET,
|
||||
_moveItemInArray,
|
||||
_getRecentData,
|
||||
_getAllFlags,
|
||||
_getRecentData,
|
||||
_mergeFlags,
|
||||
_mergePrefs,
|
||||
_moveItemInArray,
|
||||
_resetFlags,
|
||||
COMMAND_TRIM_FLAGS,
|
||||
COMMAND_TRIM_FLAGS_AND_RESET,
|
||||
defaultState,
|
||||
newUserFlags,
|
||||
useServerSideStorageStore,
|
||||
VERSION,
|
||||
} from 'src/stores/serverSideStorage.js'
|
||||
|
||||
describe('The serverSideStorage module', () => {
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@ import { cloneDeep } from 'lodash'
|
|||
|
||||
import {
|
||||
defaultState,
|
||||
mutations,
|
||||
getters,
|
||||
mutations,
|
||||
} from '../../../../src/modules/users.js'
|
||||
|
||||
describe('The users module', () => {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
import {
|
||||
replaceWord,
|
||||
addPositionToWords,
|
||||
wordAtPosition,
|
||||
replaceWord,
|
||||
splitByWhitespaceBoundary,
|
||||
wordAtPosition,
|
||||
} from '../../../../../src/services/completion/completion.js'
|
||||
|
||||
describe('addPositiontoWords', () => {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
import {
|
||||
parseLinkHeaderPagination,
|
||||
parseNotification,
|
||||
parseStatus,
|
||||
parseUser,
|
||||
parseNotification,
|
||||
parseLinkHeaderPagination,
|
||||
} from '../../../../../src/services/entity_normalizer/entity_normalizer.service.js'
|
||||
import mastoapidata from '../../../../fixtures/mastoapi.json'
|
||||
import qvitterapidata from '../../../../fixtures/statuses.json'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
import fileSizeFormatService from '../../../../../src/services/file_size_format/file_size_format.js'
|
||||
|
||||
describe('fileSizeFormat', () => {
|
||||
it('Formats file size', () => {
|
||||
const values = [1, 1024, 1048576, 1073741824, 1099511627776]
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import {
|
||||
processTextForEmoji,
|
||||
getAttrs,
|
||||
processTextForEmoji,
|
||||
} from 'src/services/html_converter/utility.service.js'
|
||||
|
||||
describe('html_converter utility', () => {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
import { deserialize } from 'src/services/theme_data/iss_deserializer.js'
|
||||
import { serialize } from 'src/services/theme_data/iss_serializer.js'
|
||||
|
||||
const componentsContext = import.meta.glob(
|
||||
['/src/**/*.style.js', '/src/**/*.style.json'],
|
||||
{ eager: true },
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { createPinia, setActivePinia } from 'pinia'
|
||||
import apiModule from 'src/modules/api.js'
|
||||
import { useListsStore } from 'src/stores/lists.js'
|
||||
import { createStore } from 'vuex'
|
||||
import apiModule from 'src/modules/api.js'
|
||||
|
||||
setActivePinia(createPinia())
|
||||
const store = useListsStore()
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
import { HttpResponse, http } from 'msw'
|
||||
import { createPinia, setActivePinia } from 'pinia'
|
||||
import { useOAuthStore } from 'src/stores/oauth.js'
|
||||
import { createApp } from 'vue'
|
||||
import { createStore } from 'vuex'
|
||||
import { createPinia, setActivePinia } from 'pinia'
|
||||
import { http, HttpResponse } from 'msw'
|
||||
import { useOAuthStore } from 'src/stores/oauth.js'
|
||||
import {
|
||||
injectMswToTest,
|
||||
authApis,
|
||||
injectMswToTest,
|
||||
testServer,
|
||||
} from '/test/fixtures/mock_api.js'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue