/
githubmirror
/
github-readme-stats
Обзор
Документация
Войти
/
githubmirror
/
github-readme-stats
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/html.test.js
10 строк
315 B
Alexandr Garbuzov
refactor: move encode HTML function tests into separate module (#4593)
17 окт 2025, 22:40
Не верифицирован
17 окт 2025, 22:40
f5de29f
Код
Авторство
О чём код?
import { describe, expect, it } from "@jest/globals"; import { encodeHTML } from "../src/common/html.js"; describe("Test html.js", () => { it("should test encodeHTML", () => { expect(encodeHTML(`<html>hello world<,.#4^&^@%!))`)).toBe( "<html>hello world<,.#4^&^@%!))", ); }); });