Skip to content

Commit e7f59f9

Browse files
author
Andrea Barbasso
committed
[DSC-2443] fix failing test
1 parent 7b1bff5 commit e7f59f9

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/app/shared/lang-switch/lang-switch.component.spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { HttpClientTestingModule, HttpTestingController } from '@angular/common/
99
import { LangSwitchComponent } from './lang-switch.component';
1010
import { LangConfig } from '../../../config/lang-config.interface';
1111
import { LocaleService } from '../../core/locale/locale.service';
12+
import { BrowserOnlyDirective } from '../utils/browser-only.directive';
1213

1314
// This test is completely independent from any message catalogs or keys in the codebase
1415
// The translation module is instantiated with these bogus messages that we aren't using anyway.
@@ -67,7 +68,9 @@ describe('LangSwitchComponent', () => {
6768
};
6869

6970
TestBed.configureTestingModule({
70-
imports: [HttpClientTestingModule, TranslateModule.forRoot(
71+
imports: [HttpClientTestingModule,
72+
BrowserOnlyDirective,
73+
TranslateModule.forRoot(
7174
{
7275
loader: { provide: TranslateLoader, useClass: CustomLoader }
7376
}

0 commit comments

Comments
 (0)