Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
NFriedo committed Mar 5, 2025
1 parent 68dfe3d commit cd40b0c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/administration/AdminMigrationSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -401,12 +401,11 @@ export default defineComponent({
return subject;
};
const supportLink: ComputedRef<string> = computed(() =>
sanitizeUrl(
const supportLink: ComputedRef<string> = computed(
() =>
`mailto:${
envConfigModule.getAccessibilityReportEmail
}?subject=${getSubject()}`
)
);
const globalFeatureEnableLdapSyncDuringMigration: ComputedRef<boolean> =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ describe("LinkContentElement", () => {
ReturnType<typeof usePreviewGenerator>
>;

beforeAll(() => {
Object.defineProperty(URL, "canParse", {
value: jest.fn().mockReturnValue(true),
});
});

beforeEach(() => {
useBoardFocusHandlerMock =
createMock<ReturnType<typeof useBoardFocusHandler>>();
Expand Down

0 comments on commit cd40b0c

Please sign in to comment.