RN buck: bundleCommand: add test for multiple bundles

Reviewed By: davidaurelio

Differential Revision: D5932971

fbshipit-source-id: 317e4503b87224cb3fa4ed7819b8af334d0b186b
This commit is contained in:
Jean Lauliac 2017-10-02 09:11:07 -07:00 коммит произвёл Facebook Github Bot
Родитель a5d1d25f56
Коммит 53a339a459
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -291,6 +291,12 @@ fs.close.mockImplementation((fd, callback = noop) => {
let filesystem = {};
fs.mock = {
clear() {
filesystem = {};
},
};
fs.createReadStream.mockImplementation(filepath => {
if (!filepath.startsWith('/')) {
throw Error('Cannot open file ' + filepath);