Skip to content

feat: integrate backend with idp sync page #14755

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Sep 24, 2024
Prev Previous commit
Next Next commit
chore: update tests
  • Loading branch information
jaaydenh committed Sep 24, 2024
commit 41631f0ba15533354df331e00ff189ef09761e3c
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,11 @@ export const ClickExportGroupPolicy: Story = {
`${MockOrganization.name}_groups-policy.json`,
),
);
const blob: Blob = (args.download as jest.Mock).mock.calls[0][0];
const blob: Blob = (args.download as jest.Mock).mock.lastCall[0];
await expect(blob.type).toEqual("application/json");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we also assert that the blob contents match the MockGroupSyncSettings value?

await expect(await blob.text()).toEqual(
JSON.stringify(MockGroupSyncSettings, null, 2),
);
},
};

Expand All @@ -63,7 +66,10 @@ export const ClickExportRolePolicy: Story = {
`${MockOrganization.name}_roles-policy.json`,
),
);
const blob: Blob = (args.download as jest.Mock).mock.calls[0][0];
const blob: Blob = (args.download as jest.Mock).mock.lastCall[0];
await expect(blob.type).toEqual("application/json");
await expect(await blob.text()).toEqual(
JSON.stringify(MockRoleSyncSettings, null, 2),
);
},
};