/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/html/case-insensitive/index.js
10 строк
459 B
Alexander Akait
Add case-insensitivity integration tests for CSS and HTML parsing (#21507)
25 июл 2026, 22:07
Не верифицирован
25 июл 2026, 22:07
d6afbe0
Код
Авторство
О чём код?
import page from "./page.html"; it("extracts assets from upper- and mixed-case tags and attributes", () => { // Every `./image.png` reference is rewritten to the emitted asset name, // proving the parser matched the tag/attribute names case-insensitively. expect(page).not.toContain("./image.png"); // One rewritten reference per source attribute in page.html. expect(page.match(/[a-f0-9]+\.png/g)).toHaveLength(9); expect(page).toMatchSnapshot(); });