Skip to content

Commit 23a3207

Browse files
committed
style: update action.ts and message.test.ts
1 parent aa724c1 commit 23a3207

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/generate/action.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ export function moveOrRenameMsg(oldPath: string, newPath: string): string {
4545
msg = `rename ${from} to ${to}`;
4646
} else {
4747
const to = quoteForSpaces(newP.name);
48-
const target = newP.dirPath === ROOT ? `${to} at ${ROOT}` : quoteForSpaces(newPath);
48+
const target =
49+
newP.dirPath === ROOT ? `${to} at ${ROOT}` : quoteForSpaces(newPath);
4950
msg = `move and rename ${from} to ${target}`;
5051
}
5152

src/test/generate/message.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,10 @@ describe("Generate commit message for a single changed file", function () {
154154
);
155155

156156
assert.strictEqual(oneChange("A\tfoo/index.md"), "create foo/index.md");
157-
assert.strictEqual(oneChange("A\tfoo/index bazz.md"), "create 'foo/index bazz.md'");
157+
assert.strictEqual(
158+
oneChange("A\tfoo/index bazz.md"),
159+
"create 'foo/index bazz.md'"
160+
);
158161
assert.strictEqual(oneChange("A\tfoo/index.js"), "create foo/index.js");
159162
});
160163
});

0 commit comments

Comments
 (0)