mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-28 10:12:11 +00:00
[Lint] Sort imports (#2104)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { setActivePinia, createPinia } from 'pinia'
|
||||
import { useKeybindingStore, KeybindingImpl } from '@/stores/keybindingStore'
|
||||
import { createPinia, setActivePinia } from 'pinia'
|
||||
|
||||
import { KeybindingImpl, useKeybindingStore } from '@/stores/keybindingStore'
|
||||
|
||||
describe('useKeybindingStore', () => {
|
||||
beforeEach(() => {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { setActivePinia, createPinia } from 'pinia'
|
||||
import { useModelStore } from '@/stores/modelStore'
|
||||
import { createPinia, setActivePinia } from 'pinia'
|
||||
|
||||
import { api } from '@/scripts/api'
|
||||
import { useModelStore } from '@/stores/modelStore'
|
||||
|
||||
// Mock the api
|
||||
jest.mock('@/scripts/api', () => ({
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { setActivePinia, createPinia } from 'pinia'
|
||||
import { useServerConfigStore } from '@/stores/serverConfigStore'
|
||||
import { createPinia, setActivePinia } from 'pinia'
|
||||
|
||||
import { ServerConfig } from '@/constants/serverConfig'
|
||||
import { useServerConfigStore } from '@/stores/serverConfigStore'
|
||||
import type { FormItem } from '@/types/settingTypes'
|
||||
|
||||
const dummyFormItem: FormItem = {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { setActivePinia, createPinia } from 'pinia'
|
||||
import { useSettingStore } from '@/stores/settingStore'
|
||||
import { createPinia, setActivePinia } from 'pinia'
|
||||
|
||||
import { api } from '@/scripts/api'
|
||||
import { useSettingStore } from '@/stores/settingStore'
|
||||
import type { SettingParams } from '@/types/settingTypes'
|
||||
|
||||
// Mock the api
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { setActivePinia, createPinia } from 'pinia'
|
||||
import { UserFile, useUserFileStore } from '@/stores/userFileStore'
|
||||
import { createPinia, setActivePinia } from 'pinia'
|
||||
|
||||
import { api } from '@/scripts/api'
|
||||
import { UserFile, useUserFileStore } from '@/stores/userFileStore'
|
||||
|
||||
// Mock the api
|
||||
jest.mock('@/scripts/api', () => ({
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
import { setActivePinia, createPinia } from 'pinia'
|
||||
import { createPinia, setActivePinia } from 'pinia'
|
||||
|
||||
import { api } from '@/scripts/api'
|
||||
import { defaultGraph, defaultGraphJSON } from '@/scripts/defaultGraph'
|
||||
import {
|
||||
LoadedComfyWorkflow,
|
||||
useWorkflowBookmarkStore,
|
||||
useWorkflowStore
|
||||
} from '@/stores/workflowStore'
|
||||
import { api } from '@/scripts/api'
|
||||
import { defaultGraph, defaultGraphJSON } from '@/scripts/defaultGraph'
|
||||
|
||||
// Add mock for api at the top of the file
|
||||
jest.mock('@/scripts/api', () => ({
|
||||
|
||||
Reference in New Issue
Block a user