Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function getTranslocoModule(config: Partial = {}) {
return TranslocoTestingModule.withLangs(
{
en,
es,
'admin-page/en': admin,
'admin-page/es': adminSpanish,
'lazy-page/en' : lazy,
'lazy-page/es' : lazySpanish
},
{
availableLangs: ['es', 'en'],
defaultLang: 'es',
...config
}
);
}
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
RouterTestingModule,
TranslocoTestingModule.withLangs({
en
})
],
declarations: [AppComponent]
}).compileComponents();
}));