Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
likui628 authored Sep 14, 2024
2 parents 03c2861 + b8a4fba commit ad07c24
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 ad07c24

Please sign in to comment.