Skip to content

Commit 92bf186

Browse files
committed
chore: fix merged lint regressions
1 parent abac103 commit 92bf186

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

apps/controller/tests/skillhub-custom-import.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const { SkillDb } = await import("../src/services/skillhub/skill-db.js");
2727

2828
function stubExtractTo(
2929
slug: string,
30-
skillsDir: string,
30+
_skillsDir: string,
3131
opts: { withPackageJson?: boolean } = {},
3232
) {
3333
vi.mocked(extractZipMock).mockImplementationOnce(

tests/notify/developer-notify.test.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ describe("developer-notify", () => {
3636
prUrl: "https://github.com/nexu-io/nexu/pull/10",
3737
});
3838

39-
expect(payload.card.header.title.content).toContain("又有新贡献者给 Nexu 提 PR");
39+
expect(payload.card.header.title.content).toContain(
40+
"又有新贡献者给 Nexu 提 PR",
41+
);
4042
expect(payload.card.body.elements[0]).toMatchObject({
4143
tag: "markdown",
4244
content: expect.stringContaining("**Title:** fix: resolve login crash"),
@@ -72,7 +74,9 @@ describe("developer-notify", () => {
7274
).toEqual(["Good First Issue", "贡献者指南", "查看全部 Issue"]);
7375
expect(payload.card.body.elements[2]).toMatchObject({
7476
tag: "markdown",
75-
content: expect.stringContaining("只需 3 步💥:❶ 选任务 ❷ 认领 ❸ 提交 PR"),
77+
content: expect.stringContaining(
78+
"只需 3 步💥:❶ 选任务 ❷ 认领 ❸ 提交 PR",
79+
),
7680
});
7781
});
7882

@@ -81,7 +85,9 @@ describe("developer-notify", () => {
8185
issueUrl: "https://github.com/nexu-io/nexu/issues/99",
8286
});
8387

84-
expect(payload.card.header.title.content).toContain("刚新增 1 条 issue 等你来领取");
88+
expect(payload.card.header.title.content).toContain(
89+
"刚新增 1 条 issue 等你来领取",
90+
);
8591
expect(payload.card.body.elements[1]).toMatchObject({ tag: "column_set" });
8692
expect(
8793
payload.card.body.elements[1].columns.map(

0 commit comments

Comments
 (0)