/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/css/css-auto/index.js
17 строк
915 B
Alexander Akait
feat: improve localIdentName hashing
26 ноя 2025, 14:08
Не верифицирован
26 ноя 2025, 14:08
1b5084e
Код
Авторство
О чём код?
import "./global.less"; import * as style1 from "./style1.module.less"; import * as style2 from "./style2.modules.less"; import * as style3 from "./style3.module.less!=!./loader.js!./style3.module.js"; import * as style4 from "./style4.module.less!=!./loader.js!./style4.js"; import * as style5 from "./style5.module.css!=!./loader.js!./style4.js"; it("should correctly compile css/auto", () => { const style = getComputedStyle(document.body); expect(style.getPropertyValue("color")).toBe(" green"); expect(style.getPropertyValue("background")).toBe(" #f00"); expect(style1.class).toBe("style1_module_less-class"); expect(style2.class).toBe("style2_modules_less-class"); expect(style3.class).toBe("style3_module_less_loader_js_style3_module_js-class"); expect(style4.class).toBe("style4_module_less_loader_js_style4_js-class"); expect(style5.class).toBe("style5_module_css_loader_js_style4_js-class"); });