Skip to content

Commit 8dec0b9

Browse files
committed
Rename path to result in tests
1 parent 4eabea6 commit 8dec0b9

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

‎src/start-proxy.test.ts‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -935,17 +935,17 @@ test.serial(
935935
sinon.stub(actionsUtil, "isRunningLocalAction").returns(true);
936936

937937
const features = mockOfflineFeatures(tempDir, logger);
938-
const path = await startProxyExports.getProxyBinaryPath(
938+
const result = await startProxyExports.getProxyBinaryPath(
939939
initAllState({ logger, features }),
940940
SAMPLE_DOTCOM_API_DETAILS,
941941
);
942942

943-
t.assert(path);
943+
t.assert(result);
944944
t.is(
945-
path.path,
945+
result.path,
946946
filepath.join(toolcachePath, startProxyExports.getProxyFilename()),
947947
);
948-
t.is(path.version, defaults.cliVersion);
948+
t.is(result.version, defaults.cliVersion);
949949
});
950950
},
951951
);
@@ -982,7 +982,7 @@ test.serial(
982982
sinon.stub(actionsUtil, "isRunningLocalAction").returns(false);
983983
state.env.set(ActionsEnvVars.GITHUB_ACTION_REPOSITORY, "test/repo");
984984

985-
const path = await startProxyExports.getProxyBinaryPath(
985+
const result = await startProxyExports.getProxyBinaryPath(
986986
{
987987
...state,
988988
features: createFeatures([]),
@@ -999,12 +999,12 @@ test.serial(
999999
st.onceWith(extractTar, archivePath);
10001000
st.onceWith(cacheDir, extractedPath);
10011001

1002-
t.assert(path);
1002+
t.assert(result);
10031003
t.is(
1004-
path.path,
1004+
result.path,
10051005
filepath.join(toolcachePath, startProxyExports.getProxyFilename()),
10061006
);
1007-
t.is(path.version, defaults.cliVersion);
1007+
t.is(result.version, defaults.cliVersion);
10081008

10091009
checkExpectedLogMessages(t, logger.messages, [
10101010
`Found private registry proxy ${startProxyExports.getProxyPackage(getTestPlatform(state))} in test/repo on https://github.com with URL ${downloadUrl}`,
@@ -1080,7 +1080,7 @@ test.serial(
10801080
sinon.stub(actionsUtil, "isRunningLocalAction").returns(false);
10811081
state.env.set(ActionsEnvVars.GITHUB_ACTION_REPOSITORY, "test/repo");
10821082

1083-
const path = await startProxyExports.getProxyBinaryPath(
1083+
const result = await startProxyExports.getProxyBinaryPath(
10841084
{
10851085
...state,
10861086
features,
@@ -1098,12 +1098,12 @@ test.serial(
10981098
st.onceWith(extractTar, archivePath);
10991099
st.onceWith(cacheDir, extractedPath);
11001100

1101-
t.assert(path);
1101+
t.assert(result);
11021102
t.is(
1103-
path.path,
1103+
result.path,
11041104
filepath.join(toolcachePath, startProxyExports.getProxyFilename()),
11051105
);
1106-
t.is(path.version, expectedVersion);
1106+
t.is(result.version, expectedVersion);
11071107
});
11081108

11091109
checkExpectedLogMessages(t, logger.messages, [

0 commit comments

Comments
 (0)