/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/html/inline-chunk-hash/test.js
13 строк
492 B
Raj Aryan
test(html): cover parser tree-construction edge cases and generator fallbacks (#21631)
10 авг 2026, 12:16
Не верифицирован
10 авг 2026, 12:16
57f8dcf
Код
Авторство
О чём код?
const fs = require("fs"); const path = require("path"); it("should resolve an inlined chunk through the chunk hash when no content hash is set", () => { const html = fs .readFileSync(path.resolve(__dirname, "main.html")) .toString("utf-8"); // Every sentinel resolved: none is left in the emitted page. expect(html).not.toContain("__WEBPACK_HTML_INLINE__"); expect(html).toContain("<style>"); expect(html).toContain("body { color: red; }"); expect(html).toContain("<script>"); });