forked from baron/baron-sso
조직도 표현 개선
This commit is contained in:
@@ -701,7 +701,9 @@ export type UserAppointment = {
|
||||
tenantSlug?: string;
|
||||
tenantName: string;
|
||||
isPrimary?: boolean;
|
||||
isOwner: boolean;
|
||||
isOwner?: boolean;
|
||||
isAdmin?: boolean;
|
||||
isManager?: boolean;
|
||||
jobTitle?: string;
|
||||
grade?: string;
|
||||
position?: string;
|
||||
@@ -713,6 +715,8 @@ export type BulkUserAppointment = {
|
||||
tenantName?: string;
|
||||
isPrimary?: boolean;
|
||||
isOwner?: boolean;
|
||||
isAdmin?: boolean;
|
||||
isManager?: boolean;
|
||||
department?: string;
|
||||
grade?: string;
|
||||
position?: string;
|
||||
|
||||
@@ -38,9 +38,11 @@ describe("common cursor pagination fetch", () => {
|
||||
expect(response.items).toEqual([{ id: "tenant-1" }, { id: "tenant-2" }]);
|
||||
expect(fetchMock).toHaveBeenCalledTimes(2);
|
||||
expect(fetchMock.mock.calls[0][0].toString()).toContain(
|
||||
"/api/v1/admin/tenants?parentId=parent-1&limit=1&offset=0",
|
||||
"/api/v1/admin/tenants?parentId=parent-1&limit=1",
|
||||
);
|
||||
expect(fetchMock.mock.calls[0][0].toString()).not.toContain("offset=");
|
||||
expect(fetchMock.mock.calls[1][0].toString()).toContain("cursor=cursor-1");
|
||||
expect(fetchMock.mock.calls[1][0].toString()).not.toContain("offset=");
|
||||
expect(fetchMock.mock.calls[0][1]).toMatchObject({
|
||||
headers: { Authorization: "Bearer token" },
|
||||
credentials: "same-origin",
|
||||
|
||||
Reference in New Issue
Block a user