test: 优化测试代码
All checks were successful
deploy to server / build-and-deploy (push) Successful in 3m5s

- 显式导入相关依赖以避免相关问题
This commit is contained in:
2025-11-14 12:23:49 +08:00
parent 341a9c4066
commit d7bd034d7d
8 changed files with 43 additions and 4 deletions

View File

@ -1,4 +1,5 @@
import { expect, test, describe } from 'vitest';
import { formatFileSize, getFileExtension, formatFileExtension } from './file';
/**
* 单元测试: formatFileSize