Skip to content

Commit

Permalink
Fix no shadow issues in fingerprints.test.ts
Browse files Browse the repository at this point in the history
Rename shadowing "uri" argument to the more explicit "artifactURI".
  • Loading branch information
Eric Cornelissen committed Nov 19, 2020
1 parent 2a2910e commit ffe9468
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/fingerprints.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ test("hash", (t: ava.Assertions) => {

function testResolveUriToFile(uri: any, index: any, artifactsURIs: any[]) {
const location = { uri, index };
const artifacts = artifactsURIs.map((uri) => ({ location: { uri } }));
const artifacts = artifactsURIs.map((artifactURI) => ({
location: { uri: artifactURI },
}));
return fingerprints.resolveUriToFile(
location,
artifacts,
Expand Down

0 comments on commit ffe9468

Please sign in to comment.