import { appVariant, config, shouldShowAboutBackendUrl, type AppVariant, } from '@/core/config'; describe('shouldShowAboutBackendUrl', () => { it('shows backend URL for development and staging', () => { expect(shouldShowAboutBackendUrl('development')).toBe(true); expect(shouldShowAboutBackendUrl('staging')).toBe(true); }); it('hides backend URL for production', () => { expect(shouldShowAboutBackendUrl('production')).toBe(false); }); it('matches config.showAboutBackendUrl for current build', () => { expect(config.showAboutBackendUrl).toBe( shouldShowAboutBackendUrl(appVariant as AppVariant), ); }); });