Skip to content

Commit

Permalink
chore: fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
coderwyd committed Sep 14, 2024
1 parent d99cad3 commit f6be36d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { beforeEach, describe, expect, it, vi } from 'vitest';

import { ModalApi } from '../modal-api'; // 假设 ModalApi 位于同一目录
import type { ModalState } from '../modal';

import { beforeEach, describe, expect, it, vi } from 'vitest';
// 假设 ModalApi 位于同一目录
import { ModalApi } from '../modal-api';

vi.mock('@vben-core/shared/store', () => {
return {
isFunction: (fn: any) => typeof fn === 'function',
Expand Down
7 changes: 4 additions & 3 deletions packages/utils/src/helpers/__tests__/generate-menus.test.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import { describe, expect, it, vi } from 'vitest';

import { generateMenus } from '../generate-menus'; // 替换为您的实际路径
import {
createRouter,
createWebHistory,
type Router,
type RouteRecordRaw,
} from 'vue-router';

import { describe, expect, it, vi } from 'vitest';
// 替换为您的实际路径
import { generateMenus } from '../generate-menus';

// Nested route setup to test child inclusion and hideChildrenInMenu functionality

describe('generateMenus', () => {
Expand Down

0 comments on commit f6be36d

Please sign in to comment.