refactor(editor): Add infix to Pinia stores (no-changelog) (#6149)
* ⚡ Add infix to Pinia stores * ⚡ Fix paths in mocks * 🐛 Fix import
This commit is contained in:
@@ -8,13 +8,13 @@ import type { Route } from 'vue-router';
|
||||
|
||||
const undoMock = vi.fn();
|
||||
const redoMock = vi.fn();
|
||||
vi.mock('@/stores/ndv', () => ({
|
||||
vi.mock('@/stores/ndv.store', () => ({
|
||||
useNDVStore: () => ({
|
||||
activeNodeName: null,
|
||||
activeNode: {},
|
||||
}),
|
||||
}));
|
||||
vi.mock('@/stores/history', () => {
|
||||
vi.mock('@/stores/history.store', () => {
|
||||
return {
|
||||
useHistoryStore: () => ({
|
||||
popUndoableToUndo: undoMock,
|
||||
@@ -22,7 +22,7 @@ vi.mock('@/stores/history', () => {
|
||||
}),
|
||||
};
|
||||
});
|
||||
vi.mock('@/stores/ui');
|
||||
vi.mock('@/stores/ui.store');
|
||||
vi.mock('vue-router/composables', () => ({
|
||||
useRoute: () => ({}),
|
||||
}));
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { setActivePinia } from 'pinia';
|
||||
import { createTestingPinia } from '@pinia/testing';
|
||||
import { useUniqueNodeName } from '@/composables/useUniqueNodeName';
|
||||
import { useNodeTypesStore } from '@/stores/nodeTypes';
|
||||
import { useWorkflowsStore } from '@/stores/workflows';
|
||||
import { useNodeTypesStore } from '@/stores/nodeTypes.store';
|
||||
import { useWorkflowsStore } from '@/stores/workflows.store';
|
||||
|
||||
describe('useUniqueNodeName', () => {
|
||||
beforeAll(() => {
|
||||
|
||||
Reference in New Issue
Block a user