Skip to content

Commit

Permalink
Merge pull request #51 from yarnpkg/master
Browse files Browse the repository at this point in the history
Chore: Remove unnecessary empty objects from resolver.init calls (yarnpkg#3611)
  • Loading branch information
GulajavaMinistudio authored Jun 10, 2017
2 parents ba3cc56 + 7e52cbb commit 10b7986
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 10b7986

Please sign in to comment.