Skip to content

Commit ffe9468

Browse files
Fix no shadow issues in fingerprints.test.ts
Rename shadowing "uri" argument to the more explicit "artifactURI".
1 parent 2a2910e commit ffe9468

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/fingerprints.test.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ test("hash", (t: ava.Assertions) => {
106106

107107
function testResolveUriToFile(uri: any, index: any, artifactsURIs: any[]) {
108108
const location = { uri, index };
109-
const artifacts = artifactsURIs.map((uri) => ({ location: { uri } }));
109+
const artifacts = artifactsURIs.map((artifactURI) => ({
110+
location: { uri: artifactURI },
111+
}));
110112
return fingerprints.resolveUriToFile(
111113
location,
112114
artifacts,

0 commit comments

Comments
 (0)