/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/asset-modules/http-url/index.errors.js
35 строк
964 B
Alexander Akait
test: stabilize codecov/changes for HttpUriPlugin network-failure path (#21113)
08 июн 2026, 15:54
Не верифицирован
08 июн 2026, 15:54
367e488
Код
Авторство
О чём код?
it("error when lockfile is outdated/invalid", () => { expect(() => { require("http://localhost:9990/index.css?cache"); }).toThrow(); expect(() => { require("http://localhost:9990/index.css?no-cache"); }).toThrow(); expect(() => { require("http://localhost:9990/index.css"); }).toThrow(); expect(() => { require("http://localhost:9990/resolve.js"); }).toThrow(); expect(() => { require("http://localhost:9990/fallback.js"); }).toThrow(); expect(() => { require("http://localhost:9990/redirect"); }).toThrow(); expect(() => { require("http://localhost:9990/resolve.js?error"); }).toThrow(); }); import text from "http://localhost:9990/asset.txt?ignore"; it("should allow to ignore lockfile entries", () => { expect(text.trim()).toBe("Hello World"); }); import cssContent from "http://localhost:9990/index.css?query#fragment"; it("should use the entry with query and fragment", () => { expect(cssContent).toBe("a {}.webpack{}"); });