Skip to content

Commit

Permalink
N21-1602 fix link (#2960)
Browse files Browse the repository at this point in the history
* fix link and test
  • Loading branch information
IgorCapCoder authored Dec 15, 2023
1 parent 87f014c commit e9ea38a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/organisms/administration/AuthSystems.unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ describe("AuthSystems", () => {
// { _id: "3", type: "ldap", ldapConfig: { provider: "general" } }
expect(
tableCell.wrappers[8].findComponent("routerlink-stub").props("to")
).toEqual("`/administration/ldap/config?id=${system._id}`");
).toEqual("/administration/ldap/config?id=3");
});

it("should display system edit button and redirect to correct config page ", () => {
Expand Down Expand Up @@ -309,7 +309,7 @@ describe("AuthSystems", () => {
// { _id: "3", type: "ldap", ldapConfig: { provider: "general" } }
expect(
tableCell.wrappers[8].findComponent("routerlink-stub").props("to")
).toEqual("`/administration/ldap/config?id=${system._id}`");
).toEqual("/administration/ldap/config?id=3");
});

it("should NOT display the dialog", async () => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/organisms/administration/AuthSystems.vue
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ export default {
) {
return `/administration/school-settings/provisioning-options?systemId=${system._id}`;
}
return "`/administration/ldap/config?id=${system._id}`";
return `/administration/ldap/config?id=${system._id}`;
},
openConfirmDeleteDialog(systemId) {
this.confirmDeleteDialog = {
Expand Down

0 comments on commit e9ea38a

Please sign in to comment.