Skip to content

Commit bc75091

Browse files
committed
Add empty lines to test cases
1 parent dc2428c commit bc75091

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/git-utils.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ test("GitVersionInfo.isAtLeast correctly compares versions", async (t) => {
439439
test("listFiles returns array of file paths", async (t) => {
440440
sinon
441441
.stub(gitUtils, "runGitCommand")
442-
.resolves(["dir/file.txt", "README.txt"].join(os.EOL));
442+
.resolves(["dir/file.txt", "README.txt", ""].join(os.EOL));
443443

444444
await t.notThrowsAsync(async () => {
445445
const result = await gitUtils.listFiles("/some/path");
@@ -453,14 +453,15 @@ test("getGeneratedFiles returns generated files only", async (t) => {
453453

454454
runGitCommandStub
455455
.onFirstCall()
456-
.resolves(["dir/file.txt", "test.json", "README.txt"].join(os.EOL));
456+
.resolves(["dir/file.txt", "test.json", "README.txt", ""].join(os.EOL));
457457
runGitCommandStub
458458
.onSecondCall()
459459
.resolves(
460460
[
461461
"dir/file.txt: linguist-generated: unspecified",
462462
"test.json: linguist-generated: true",
463463
"README.txt: linguist-generated: false",
464+
"",
464465
].join(os.EOL),
465466
);
466467

0 commit comments

Comments
 (0)