In our angular app, we use environment files to load some config.
environment.ts
export const environment = { production: false, defaultLocale: \'en
Something like this worked for me:
it('should test', () => { environment.defaultLocale = ; const result = service.method(); expect(result).toEqual(); });