Rename checkoutPath to either workspacePath or sourceRoot

This commit is contained in:
Arthur Baars 2021-07-01 11:38:14 +02:00
parent 1137e7db3e
commit f94f1ed663
18 changed files with 100 additions and 86 deletions

View file

@ -201,12 +201,12 @@ test("addFingerprints", async (t) => {
expected = JSON.stringify(JSON.parse(expected));
// The URIs in the SARIF files resolve to files in the testdata directory
const checkoutPath = path.normalize(`${__dirname}/../src/testdata`);
const sourceRoot = path.normalize(`${__dirname}/../src/testdata`);
t.deepEqual(
await fingerprints.addFingerprints(
input,
checkoutPath,
sourceRoot,
getRunnerLogger(true)
),
expected
@ -227,12 +227,12 @@ test("missingRegions", async (t) => {
expected = JSON.stringify(JSON.parse(expected));
// The URIs in the SARIF files resolve to files in the testdata directory
const checkoutPath = path.normalize(`${__dirname}/../src/testdata`);
const sourceRoot = path.normalize(`${__dirname}/../src/testdata`);
t.deepEqual(
await fingerprints.addFingerprints(
input,
checkoutPath,
sourceRoot,
getRunnerLogger(true)
),
expected