Skip to content

Commit 1413aa3

Browse files
committed
Rename
1 parent 4120cdd commit 1413aa3

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

tests/integration/core.test.ts

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -80,24 +80,22 @@ describe("commitFilesFromBase64", () => {
8080
repositoryId = response.id;
8181

8282
// Get recent 2 commits to perform tests on
83-
const result = await exec(
83+
const logOutput = await exec(
8484
"git",
8585
["log", "-n", "2", "--pretty=format:%H %T"],
86-
{
87-
nodeOptions: { cwd: process.cwd() },
88-
},
86+
{ nodeOptions: { cwd: process.cwd() } },
8987
);
90-
const log = result.stdout
88+
const logs = logOutput.stdout
9189
.trim()
9290
.split("\n")
9391
.map((line) => {
9492
const [oid, tree] = line.split(" ");
95-
return { oid, commit: { tree } };
93+
return { oid, tree };
9694
});
9795

98-
testTargetCommit = log[1]?.oid ?? "N/A";
99-
testTargetCommit2 = log[0]?.oid ?? "N/A";
100-
testTargetTree2 = log[0]?.commit.tree ?? "N/A";
96+
testTargetCommit = logs[1]?.oid ?? "N/A";
97+
testTargetCommit2 = logs[0]?.oid ?? "N/A";
98+
testTargetTree2 = logs[0]?.tree ?? "N/A";
10199
});
102100

103101
it("can commit files", async () => {

0 commit comments

Comments
 (0)