Searched refs:isReferencePath (Results 1 – 6 of 6) sorted by relevance
1 import { isReferencePath } from '~/common/routes';3 describe(isReferencePath, () => {5 expect(isReferencePath('/versions/unversioned')).toBe(true);9 expect(isReferencePath('/versions/latest/sdk/notifications')).toBe(true);13 expect(isReferencePath('/versions/v44.0.0/react-native/stylesheet/')).toBe(true);17 expect(isReferencePath('/build-reference/how-tos/')).toBe(false);
10 if (isReferencePath(path)) {25 export const isReferencePath = (path: string) => { constant50 if (isReferencePath(path)) {
9 import { isReferencePath } from '~/common/routes';38 if (!hasVersion && (!router?.pathname || !isReferencePath(router.pathname))) {
14 isReferencePath,45 } else if (isReferencePath(url)) {58 if (isReferencePath(url)) {
45 if (RoutesUtils.isReferencePath(path)) {124 content={RoutesUtils.isReferencePath(pathname) ? version : 'none'}
109 export const isReferencePath = (url: string) => { constant