Push handling of missing parent module to resolve

Reviewed By: jeanlauliac

Differential Revision: D4863235

fbshipit-source-id: 857814cb25ee661db5e2cbdeac7175d9276044db
This commit is contained in:
David Aurelio
2017-04-11 08:02:23 -07:00
committed by Facebook Github Bot
parent 3bcf4acfc7
commit eabc9cecd6
4 changed files with 11 additions and 13 deletions
@@ -46,7 +46,7 @@ describe('Graph:', () => {
const entryPoint = '/arbitrary/path';
graph([entryPoint], anyPlatform, noOpts, () => {
expect(resolve).toBeCalledWith(
entryPoint, '', any(String), any(Object), any(Function));
entryPoint, null, any(String), any(Object), any(Function));
done();
});
});
@@ -55,9 +55,9 @@ describe('Graph:', () => {
const entryPoints = ['Arbitrary', '../entry.js'];
graph(entryPoints, anyPlatform, noOpts, () => {
expect(resolve).toBeCalledWith(
entryPoints[0], '', any(String), any(Object), any(Function));
entryPoints[0], null, any(String), any(Object), any(Function));
expect(resolve).toBeCalledWith(
entryPoints[1], '', any(String), any(Object), any(Function));
entryPoints[1], null, any(String), any(Object), any(Function));
done();
});
@@ -74,7 +74,7 @@ describe('Graph:', () => {
const platform = 'any';
graph(anyEntry, platform, noOpts, () => {
expect(resolve).toBeCalledWith(
any(String), '', platform, any(Object), any(Function));
any(String), null, platform, any(Object), any(Function));
done();
});
});
@@ -83,7 +83,7 @@ describe('Graph:', () => {
const log = new Console();
graph(anyEntry, anyPlatform, {log}, () => {
expect(resolve).toBeCalledWith(
any(String), '', any(String), objectContaining({log}), any(Function));
any(String), null, any(String), objectContaining({log}), any(Function));
done();
});
});