/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/ResourceHintPlugin.unittest.js
17 строк
741 B
Alexander Akait
fix(webmanifest): rewrite icon URLs at byte offsets (#21655)
10 авг 2026, 01:33
Не верифицирован
10 авг 2026, 01:33
5c5d009
Код
Авторство
О чём код?
"use strict"; // Rules and precedence are covered by `configCases/html/url-hints-rules`. // No build reaches this fallback: the taps are copied into child compilers too. const ResourceHintPlugin = require("../lib/prefetch/ResourceHintPlugin"); describe("ResourceHintPlugin.getCompilationResolver", () => { it("returns an empty resolver when no plugin instance ran on this compilation", () => { const resolver = ResourceHintPlugin.getCompilationResolver( /** @type {EXPECTED_ANY} */ ({}) ); expect(resolver.hints).toBeUndefined(); expect(resolver.getHtmlHinted("any")).toEqual([]); expect(resolver.isHtmlHinted(/** @type {EXPECTED_ANY} */ ({}))).toBe(false); expect(resolver.getEntrypointHints("any")).toEqual([]); }); });