mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-15 18:30:39 +09:00
Pin imported GitHub skills and add update checks
This commit is contained in:
parent
cfa4925075
commit
7e43020a28
14 changed files with 1646 additions and 350 deletions
|
|
@ -39,6 +39,16 @@ describe("getRememberedPathOwnerCompanyId", () => {
|
|||
}),
|
||||
).toBe("pap");
|
||||
});
|
||||
|
||||
it("treats unprefixed skills routes as board routes instead of company prefixes", () => {
|
||||
expect(
|
||||
getRememberedPathOwnerCompanyId({
|
||||
companies,
|
||||
pathname: "/skills/skill-123/files/SKILL.md",
|
||||
fallbackCompanyId: "pap",
|
||||
}),
|
||||
).toBe("pap");
|
||||
});
|
||||
});
|
||||
|
||||
describe("sanitizeRememberedPathForCompany", () => {
|
||||
|
|
@ -68,4 +78,13 @@ describe("sanitizeRememberedPathForCompany", () => {
|
|||
}),
|
||||
).toBe("/dashboard");
|
||||
});
|
||||
|
||||
it("keeps remembered skills paths intact for the target company", () => {
|
||||
expect(
|
||||
sanitizeRememberedPathForCompany({
|
||||
path: "/skills/skill-123/files/SKILL.md",
|
||||
companyPrefix: "PAP",
|
||||
}),
|
||||
).toBe("/skills/skill-123/files/SKILL.md");
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue