/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/hotCases/runtime/update-multiple-modules/index.js
11 строк
291 B
Florent Cailhol
Migrate HotTestCases to Jest
25 янв 2018, 01:31
25 янв 2018, 01:31
998f768
Код
Авторство
О чём код?
var value = require("./parent-file"); it("should update multiple modules at the same time", (done) => { expect(value).toBe(2); module.hot.accept("./parent-file", () => { value = require("./parent-file"); expect(value).toBe(4); done(); }); NEXT(require("../../update")(done)); });