forked from baron/baron-sso
chore: snapshot local state before dev merge
This commit is contained in:
@@ -624,6 +624,52 @@ describe("TenantWorksmobilePage comparison helpers", () => {
|
||||
).toEqual(["조직: Baron 소속 정보를 WORKS에 반영해야 합니다."]);
|
||||
});
|
||||
|
||||
it("formats grade update reasons with before and after values", () => {
|
||||
expect(
|
||||
formatWorksmobileUpdateDetails({
|
||||
resourceType: "USER",
|
||||
status: "needs_update",
|
||||
baronId: "user-1",
|
||||
externalKey: "user-1",
|
||||
baronName: "신현우",
|
||||
worksmobileName: "신현우",
|
||||
baronGrade: "책임",
|
||||
worksmobileLevelName: "선임",
|
||||
updateReasons: ["grade"],
|
||||
}),
|
||||
).toEqual(["직급: 선임 -> 책임"]);
|
||||
});
|
||||
|
||||
it("formats grade update reasons with matched WORKS membership", () => {
|
||||
expect(
|
||||
formatWorksmobileUpdateDetails({
|
||||
resourceType: "USER",
|
||||
status: "needs_update",
|
||||
baronId: "user-1",
|
||||
externalKey: "user-1",
|
||||
baronName: "연구원",
|
||||
worksmobileName: "연구원",
|
||||
baronGrade: "책임연구원",
|
||||
worksmobileLevelName: "",
|
||||
updateReasons: ["grade"],
|
||||
userMemberships: [
|
||||
{
|
||||
baronOrgId: "1d74bebb-c5a1-49d4-bec4-90f0c89ad21f",
|
||||
baronOrgSlug: "hmeg",
|
||||
baronOrgName: "HmEG",
|
||||
baronGrade: "책임연구원",
|
||||
worksmobileOrgId: "works-hmeg",
|
||||
worksmobileOrgName: "WORKS HmEG",
|
||||
worksmobileDomainName: "baroncs.co.kr",
|
||||
gradeNeedsUpdate: true,
|
||||
},
|
||||
],
|
||||
}),
|
||||
).toEqual([
|
||||
"직급: 없음 -> 책임연구원 (Baron HmEG / WORKS WORKS HmEG)",
|
||||
]);
|
||||
});
|
||||
|
||||
it("does not format phone update details for spaced Korean country code formatting only", () => {
|
||||
expect(
|
||||
formatWorksmobileUpdateDetails({
|
||||
|
||||
Reference in New Issue
Block a user