/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/css/pseudo-export/index.js
58 строк
1 KB
alexander.akait
test: fix
15 ноя 2024, 21:17
15 ноя 2024, 21:17
2c00999
Код
Авторство
О чём код?
it("should allow to dynamic import a css module", done => { __non_webpack_require__("./style_module_css.bundle0.js"); import("./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 reexport a css module", done => { __non_webpack_require__("./reexported_js.bundle0.js"); import("./reexported").then(x => { try { expect(x).toEqual( nsObj({ a: "a", abc: "a b c", comments: "abc/****/ /* hello world *//****/ def", whitespace: "abc\n\tdef" }) ); } catch (e) { return done(e); } done(); }, done); }); it("should allow to import a css module", done => { __non_webpack_require__("./imported_js.bundle0.js"); import("./imported").then(({ default: 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); });