import { RouteUrls } from './route-urls' ; const isArrayUnique = ( arr ) => Array . isArray ( arr ) && new Set ( arr ) . size === arr . length ; describe ( 'RouteUrls' , ( ) => { it ( 'has all unique route paths' , ( ) => { const paths = Object . values ( RouteUrls ) . filter ( url => url !== '/' ) ; expect ( isArrayUnique ( paths ) ) . toBeTruthy ( ) ; } ) ; } ) ;