diff --git a/build/type-safe.json b/build/type-safe.json
index 4f8638accd..861968e884 100644
--- a/build/type-safe.json
+++ b/build/type-safe.json
@@ -18,6 +18,7 @@
"packages/components/collapse-item/",
"packages/components/dialog/",
"packages/components/icon/",
+ "packages/components/link/",
"packages/components/page-header/",
"packages/components/row/",
"packages/components/slot/",
diff --git a/packages/components/link/__tests__/link.spec.ts b/packages/components/link/__tests__/link.vitest.ts
similarity index 79%
rename from packages/components/link/__tests__/link.spec.ts
rename to packages/components/link/__tests__/link.vitest.ts
index d8fab0c7e7..7e05afecc5 100644
--- a/packages/components/link/__tests__/link.spec.ts
+++ b/packages/components/link/__tests__/link.vitest.ts
@@ -1,10 +1,11 @@
import { mount } from '@vue/test-utils'
+import { describe, it, expect } from 'vitest'
import Link from '../src/link.vue'
const AXIOM = 'Rem is the best girl'
describe('Link.vue', () => {
- test('render test', () => {
+ it('render test', () => {
const wrapper = mount(Link, {
slots: {
default: AXIOM,
@@ -13,7 +14,7 @@ describe('Link.vue', () => {
expect(wrapper.text()).toEqual(AXIOM)
})
- test('it should handle click event when link is not disabled', async () => {
+ it('it should handle click event when link is not disabled', async () => {
const wrapper = mount(Link, {
slots: {
default: AXIOM,
@@ -24,7 +25,7 @@ describe('Link.vue', () => {
expect(wrapper.emitted('click')).toHaveLength(1)
})
- test('it should disable click when link is disabled', async () => {
+ it('it should disable click when link is disabled', async () => {
const wrapper = mount(Link, {
slots: {
default: AXIOM,
@@ -38,7 +39,7 @@ describe('Link.vue', () => {
expect(wrapper.emitted('click')).toBeUndefined()
})
- test('icon slots', () => {
+ it('icon slots', () => {
const linkName = 'test link'
const wrapper = mount(Link, {
slots: {
diff --git a/packages/components/link/src/link.vue b/packages/components/link/src/link.vue
index 7e13490256..4f592d1b2a 100644
--- a/packages/components/link/src/link.vue
+++ b/packages/components/link/src/link.vue
@@ -2,7 +2,7 @@
-
+
-
+
-