Fix no shadow issues in fingerprints.test.ts

Rename shadowing "uri" argument to the more explicit "artifactURI".
This commit is contained in:
Eric Cornelissen 2020-11-19 22:51:29 +01:00
parent 2a2910e693
commit ffe94681e4

View file

@ -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,