test: 优化测试代码
All checks were successful
deploy to server / build-and-deploy (push) Successful in 3m5s
All checks were successful
deploy to server / build-and-deploy (push) Successful in 3m5s
- 显式导入相关依赖以避免相关问题
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
import { expect, test, describe } from 'vitest';
|
||||
import { isObject, isArrayOfObject } from './object';
|
||||
|
||||
/**
|
||||
* 单元测试: isObject
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import { describe, expect, test } from 'vitest';
|
||||
import { converters } from './search-converters';
|
||||
|
||||
/**
|
||||
* 单元测试: converters
|
||||
@ -69,7 +70,7 @@ describe('converters', () => {
|
||||
expect(result).toEqual({
|
||||
id: 'TEST-UUID',
|
||||
title: 'User Manual',
|
||||
summary: undefined,
|
||||
summary: '',
|
||||
type: 'document',
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user