/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/hotCases/conditional-runtime/accept-conditional/index.js
10 строк
305 B
Tobias Koppers
fix hot test cases for async-node
27 окт 2020, 13:43
27 окт 2020, 13:43
2b964c6
Код
Авторство
О чём код?
it("should create a conditional import when accepted", done => { if (Math.random() < 0) new Worker(new URL("worker.js", import.meta.url)); import("./module") .then(module => module.test(callback => { NEXT(require("../../update")(done, undefined, callback)); }, done) ) .catch(done); });