import { getAccessibilitySettings } from './accessibility' ; import { getDateFormatSettings } from './date_formats' ; import { getMiscUiSettings } from './misc' ; import { getNavigationSettings } from './navigation' ; import { getNotificationsSettings } from './notifications' ; import { getThemeSettings } from './theme' ; import { getCoreSettings } from './index' ; import { getStateSettings } from './state' ; describe ( 'getCoreSettings' , ( ) => { it ( 'should not have setting overlaps' , ( ) => { const coreSettingsLength = Object . keys ( getCoreSettings ( ) ) . length ; const summedLength = [ getAccessibilitySettings ( ) , getDateFormatSettings ( ) , getMiscUiSettings ( ) , getNavigationSettings ( ) , getNotificationsSettings ( ) , getThemeSettings ( ) , getStateSettings ( ) , ] . reduce ( ( sum , settings ) => sum + Object . keys ( settings ) . length , 0 ) ; expect ( coreSettingsLength ) . toBe ( summedLength ) ; } ) ; } ) ;