/
githubmirror
/
taro
Обзор
Документация
Войти
/
githubmirror
/
taro
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/shared/tests/shared.spec.ts
26 строк
374 B
Yiheng
test(@tarojs/shared): jest to vitest (#18148)
13 авг 2025, 05:02
Не верифицирован
13 авг 2025, 05:02
b3127a8
Код
Авторство
О чём код?
import { describe, expect, test } from 'vitest' import { indent } from '../src/utils' describe('shared utils', () => { test('#indent', async () => { const inner = `<text> hello, world </text>` const outer = `<view> ${indent(inner, 2)} </view>` const result = `<view> <text> hello, world </text> </view>` expect(outer).toBe(result) }) })