Skip to content
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

changes for role_name and role_category #3805

Merged
merged 13 commits into from
Jul 31, 2024
7 changes: 3 additions & 4 deletions api/test/pact/pact-tests/wa2/taskRoles.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@ const taskId = '4d4b6fgh-c91f-433f-92ac-e456ae34f72a';

describe('Task management api, task roles', () => {
const RESPONSE_BODY = { roles: eachLike({
role_category: somethingLike('test-role-cat'),
role_name: somethingLike('test-role-name'),
role_category: somethingLike('LEGAL_OPERATIONS'),
role_name: somethingLike('tribunal-caseworker'),
permissions: eachLike('READ'),
authorisations: eachLike('IAC')
}
) };
}) };

describe('get /work-types', () => {
const sandbox: sinon.SinonSandbox = sinon.createSandbox();
Expand Down
6 changes: 3 additions & 3 deletions api/test/pact/pact-tests/wa2/typeOfWork.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ const pactSetUp = new PactTestSetup({ provider: 'wa_task_management_api_get_work
describe('Task management api, work types', () => {
const RESPONSE_BODY = {
work_types: eachLike({
id: somethingLike('applications'),
label: somethingLike('Applications')
id: somethingLike('evidence'),
label: somethingLike('Evidence')
})
};

Expand Down Expand Up @@ -97,5 +97,5 @@ describe('Task management api, work types', () => {
});

function assertResponses(dto: any) {
expect(dto[0].key).to.be.equal('applications');
expect(dto[0].key).to.be.equal('evidence');
}