mocks/data/users/index.ts
import type { TestUserData } from "../../index.d";
import { reviewers } from "./cmsReviewer";
import { helpDeskUsers } from "./helpDeskUsers";
import { readOnlyUsers } from "./readOnlyCMSUsers";
import { stateSubmitters } from "./stateSubmitters";
export const noRoleUser: TestUserData = {
UserAttributes: [
{
Name: "email",
Value: "badfootball@example.com",
},
{
Name: "given_name",
Value: "bad",
},
{
Name: "family_name",
Value: "football",
},
{
Name: "email_verified",
Value: "true",
},
{
Name: "sub",
Value: "0d4e3b53-07c8-42c8-9a26-c7dbf7eee027",
},
],
Username: "0d4e3b53-07c8-42c8-9a26-c7dbf7eee027",
};
// return all of the possible responses
export const userResponses: TestUserData[] = [
...stateSubmitters,
...reviewers,
...helpDeskUsers,
...readOnlyUsers,
noRoleUser,
];
// return an array of all usernames
export default userResponses.map((response) => ({ username: response.Username }));
export * from "./cmsReviewer";
export * from "./helpDeskUsers";
export * from "./mockStorage";
export * from "./readOnlyCMSUsers";
export * from "./stateSubmitters";