/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/css/async-chunk-node/index.js
25 строк
542 B
alexander.akait
feat: parse `:import`
06 ноя 2024, 22:14
06 ноя 2024, 22:14
23228c8
Код
Авторство
О чём код?
it("should allow to dynamic import a css module", done => { import("../pseudo-export/style.module.css").then(x => { try { expect(x).toEqual( nsObj({ a: "a", abc: "a b c", comments: "abc/****/ /* hello world *//****/ def", whitespace: "abc\n\tdef", default: "default" }) ); } catch (e) { return done(e); } done(); }, done); }); it("should allow to dynamic import a pure css", done => { import("./style.css").then(x => { expect(Object.keys(x).length).toBe(0) done(); }, done); });