/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/source-map/relative-source-map-path/index.js
14 строк
434 B
Bazyli Brzóska
migrate should to expect, part 4 (manual)
27 янв 2018, 18:05
27 янв 2018, 18:05
075fcc3
Код
Авторство
О чём код?
it("should have a relative url to the source-map", function() { var fs = require("fs"); var source = fs.readFileSync(__filename, "utf-8"); var match = /sourceMappingURL\s*=\s*(.*)/.exec(source); expect(match[1]).toBe("bundle0.js.map"); }); it("should have a relative url to the source-map with prefix", function(done) { require.ensure([], function(require) { global.expect = expect; require("./test.js"); done(); }); });