From 47fff7ee14282648b56ac423d8f6da110cd11155 Mon Sep 17 00:00:00 2001 From: pany <939630029@qq.com> Date: Mon, 12 Jun 2023 18:20:24 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96=20?= =?UTF-8?q?tests/demo.test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/demo.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/demo.test.ts b/tests/demo.test.ts index ec1bca3d..ecca8df3 100644 --- a/tests/demo.test.ts +++ b/tests/demo.test.ts @@ -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 = {