[MM-53056] Force a pathname when checking for deep links (#2748)

This commit is contained in:
Devin Binnie
2023-06-07 11:16:04 -04:00
committed by GitHub
parent 1db2828a93
commit a7c25ee95e
4 changed files with 7 additions and 5 deletions

View File

@@ -13,6 +13,7 @@ jest.mock('common/config', () => ({
jest.mock('common/utils/url', () => ({
parseURL: jest.fn(),
isInternalURL: jest.fn(),
getFormattedPathName: (pathname) => (pathname.length ? pathname : '/'),
}));
jest.mock('common/utils/util', () => ({
isVersionGreaterThanOrEqualTo: jest.fn(),