Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix no shadow issues in fingerprints.test.ts
Rename shadowing "uri" argument to the more explicit "artifactURI".
Eric Cornelissen committed Nov 19, 2020

Unverified

No user is associated with the committer email.
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
@@ -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,

0 comments on commit ffe9468

Please sign in to comment.