Commits
Koen Pauwels authored 7812eecb536
3 3 | import { ContextHelpToggleComponent } from './context-help-toggle.component'; |
4 4 | import { TranslateService, TranslateModule } from '@ngx-translate/core'; |
5 5 | import { ContextHelpService } from '../../shared/context-help.service'; |
6 6 | import { of as observableOf, BehaviorSubject } from 'rxjs'; |
7 7 | import { By } from '@angular/platform-browser'; |
8 8 | |
9 9 | describe('ContextHelpToggleComponent', () => { |
10 10 | let component: ContextHelpToggleComponent; |
11 11 | let fixture: ComponentFixture<ContextHelpToggleComponent>; |
12 12 | let contextHelpService; |
13 - | let contextHelpEmpty$ = new BehaviorSubject(true); |
13 + | const contextHelpEmpty$ = new BehaviorSubject(true); |
14 14 | |
15 15 | beforeEach(async () => { |
16 16 | contextHelpService = jasmine.createSpyObj('contextHelpService', |
17 17 | ['toggleIcons', 'contextHelpEmpty$']); |
18 18 | contextHelpService.contextHelpEmpty$.and.returnValue(contextHelpEmpty$); |
19 19 | await TestBed.configureTestingModule({ |
20 20 | declarations: [ ContextHelpToggleComponent ], |
21 21 | providers: [ |
22 22 | { provide: ContextHelpService, useValue: contextHelpService }, |
23 23 | ], |