Template
1
0
mirror of https://github.com/un-pany/v3-admin-vite.git synced 2025-04-20 10:59:21 +08:00

perf: 代码优化 tests/demo.test

This commit is contained in:
pany 2023-06-12 18:20:24 +08:00
parent 4caa0edf0a
commit 47fff7ee14

View File

@ -4,10 +4,10 @@ import { describe, expect, it } from "vitest"
* @description Vitest
* @link https://cn.vitest.dev/api
* @api describe: 形成一个作用域
* @api test/it: 定义了一组关于测试期望的方法
* @api expect: 创建断言
* @api toBe: 用于断言基础对象是否相等
* @api toEqual: 断言检查值是否等于接收值使
* @api test/it: 定义了一组关于测试期望的方法
* @api expect: 用来创建断言
* @api toBe: 以用于断言原始类型是否相等
* @api toEqual: 断言实际值是否等于接收到的值或具有相同的结构
*/
const author1 = {