Skip to content

Commit

Permalink
Chore: Remove unnecessary empty objects from resolver.init calls (#3611)
Browse files Browse the repository at this point in the history
Follow up to 7515772.

After refactoring #3604 I forgot to remove these empty objects
so now I'm doing it with this diff :)
  • Loading branch information
BYK authored and arcanis committed Jun 9, 2017
1 parent 7515772 commit 7e52cbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion __tests__/commands/install/integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ test('changes the cache directory when bumping the cache version', async () => {
const lockfile = await Lockfile.fromDirectory(config.cwd);

const resolver = new PackageResolver(config, lockfile);
await resolver.init([{pattern: 'is-array', registry: 'npm'}], {});
await resolver.init([{pattern: 'is-array', registry: 'npm'}]);

const ref = resolver.getManifests()[0]._reference;
const cachePath = config.generateHardModulePath(ref, true);
Expand Down
2 changes: 1 addition & 1 deletion __tests__/package-resolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function addTest(pattern, registry = 'npm', init: ?(cacheFolder: string) => Prom
}

const resolver = new PackageResolver(config, lockfile);
await resolver.init([{pattern, registry}], {});
await resolver.init([{pattern, registry}]);

const ref = resolver.getManifests()[0]._reference;
const cachePath = config.generateHardModulePath(ref, true);
Expand Down

0 comments on commit 7e52cbb

Please sign in to comment.