import { getLanguage } from '@client/i18n/selectors' ; import { getInitialState } from '@client/tests/util' ; describe ( 'intl selectors' , ( ) => { let mockState ; beforeEach ( async ( ) => { mockState = await getInitialState ( ) ; } ) ; describe ( 'getLanguage' , ( ) => { it ( 'should return language locale string' , ( ) => { const locale = 'en' ; expect ( getLanguage ( mockState ) ) . toEqual ( locale ) ; } ) ; } ) ; } ) ;