Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b8a4fba7
authored
Sep 14, 2024
by
Donny Wang
Committed by
GitHub
Sep 14, 2024
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
chore: fix ci (#4404)
1 parent
d99cad35
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
packages/@core/ui-kit/popup-ui/src/modal/__tests__/modal-api.test.ts
packages/utils/src/helpers/__tests__/generate-menus.test.ts
packages/@core/ui-kit/popup-ui/src/modal/__tests__/modal-api.test.ts
View file @
b8a4fba
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'
,
...
...
packages/utils/src/helpers/__tests__/generate-menus.test.ts
View file @
b8a4fba
import
{
describe
,
expect
,
it
,
vi
}
from
'vitest'
;
import
{
generateMenus
}
from
'../generate-menus'
;
// 替换为您的实际路径
import
{
createRouter
,
createWebHistory
,
...
...
@@ -8,6 +5,10 @@ import {
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'
,
()
=>
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment