-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rename roles using kebab case : back-office to-review agency-admin
- Loading branch information
1 parent
075a523
commit 191722e
Showing
41 changed files
with
144 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -354,9 +354,9 @@ describe("Admin router", () => { | |
describe(`${displayRouteName( | ||
adminRoutes.getInclusionConnectedUsers, | ||
)} List inclusion connected user`, () => { | ||
it("200 - Gets the list of connected users with role 'toReview'", async () => { | ||
it("200 - Gets the list of connected users with role 'to-review'", async () => { | ||
const response = await sharedRequest.getInclusionConnectedUsers({ | ||
queryParams: { agencyRole: "toReview" }, | ||
queryParams: { agencyRole: "to-review" }, | ||
headers: { authorization: token }, | ||
}); | ||
expectHttpResponseToEqual(response, { | ||
|
@@ -367,7 +367,7 @@ describe("Admin router", () => { | |
|
||
it("401 - missing token", async () => { | ||
const response = await sharedRequest.getInclusionConnectedUsers({ | ||
queryParams: { agencyRole: "toReview" }, | ||
queryParams: { agencyRole: "to-review" }, | ||
headers: { authorization: "" }, | ||
}); | ||
expectHttpResponseToEqual(response, { | ||
|
@@ -380,7 +380,7 @@ describe("Admin router", () => { | |
describe(`${displayRouteName( | ||
adminRoutes.updateUserRoleForAgency, | ||
)} Update user role for agency`, () => { | ||
it("201 - Updates role of user from 'toReview' to 'counsellor' for given agency", async () => { | ||
it("201 - Updates role of user from 'to-review' to 'counsellor' for given agency", async () => { | ||
const agency = new AgencyDtoBuilder() | ||
.withId("two-steps-validation-agency") | ||
.withCounsellorEmails(["[email protected]"]) | ||
|
@@ -391,7 +391,7 @@ describe("Admin router", () => { | |
firstName: "John", | ||
lastName: "Doe", | ||
agencyRights: [ | ||
{ agency, roles: ["toReview"], isNotifiedByEmail: false }, | ||
{ agency, roles: ["to-review"], isNotifiedByEmail: false }, | ||
], | ||
dashboards: { agencies: {}, establishments: {} }, | ||
externalId: "john-external-id", | ||
|
@@ -435,15 +435,15 @@ describe("Admin router", () => { | |
}); | ||
}); | ||
|
||
it("400 - when trying to Update role of user from 'toReview' to 'counsellor' for agency that have only one step validation", async () => { | ||
it("400 - when trying to Update role of user from 'to-review' to 'counsellor' for agency that have only one step validation", async () => { | ||
const agency = new AgencyDtoBuilder().build(); | ||
const inclusionConnectedUser: InclusionConnectedUser = { | ||
id: "my-user-id", | ||
email: "[email protected]", | ||
firstName: "John", | ||
lastName: "Doe", | ||
agencyRights: [ | ||
{ agency, roles: ["toReview"], isNotifiedByEmail: false }, | ||
{ agency, roles: ["to-review"], isNotifiedByEmail: false }, | ||
], | ||
dashboards: { agencies: {}, establishments: {} }, | ||
externalId: "john-external-id", | ||
|
@@ -489,7 +489,7 @@ describe("Admin router", () => { | |
|
||
expectObjectsToMatch(inMemoryUow.userRepository.agencyRightsByUserId, { | ||
[inclusionConnectedUser.id]: [ | ||
{ agency, roles: ["toReview"], isNotifiedByEmail: false }, | ||
{ agency, roles: ["to-review"], isNotifiedByEmail: false }, | ||
], | ||
}); | ||
}); | ||
|
@@ -520,7 +520,7 @@ describe("Admin router", () => { | |
firstName: "John", | ||
lastName: "Doe", | ||
agencyRights: [ | ||
{ agency, roles: ["toReview"], isNotifiedByEmail: false }, | ||
{ agency, roles: ["to-review"], isNotifiedByEmail: false }, | ||
], | ||
dashboards: { agencies: {}, establishments: {} }, | ||
externalId: "john-external-id", | ||
|
@@ -563,7 +563,7 @@ describe("Admin router", () => { | |
firstName: "John", | ||
lastName: "Doe", | ||
agencyRights: [ | ||
{ agency, roles: ["toReview"], isNotifiedByEmail: false }, | ||
{ agency, roles: ["to-review"], isNotifiedByEmail: false }, | ||
], | ||
dashboards: { agencies: {}, establishments: {} }, | ||
externalId: "john-external-id", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.