it('should set tab crumb on init', () => {
spyOn(breadcrumbService, 'setTabCrumb');
component.ngOnInit();
- expect(breadcrumbService.setTabCrumb).toHaveBeenCalledWith('Gateways');
+ expect(breadcrumbService.setTabCrumb).toHaveBeenCalledWith('Gateway groups');
});
it('should update tab crumb on tab switch', () => {
spyOn(breadcrumbService, 'setTabCrumb');
component.onSelected(component.Tabs.subsystem);
- expect(breadcrumbService.setTabCrumb).toHaveBeenCalledWith('Subsystem');
+ expect(breadcrumbService.setTabCrumb).toHaveBeenCalledWith('Subsystems');
});
it('should clear tab crumb on destroy', () => {
}
const TAB_LABELS: Record<TABS, string> = {
- [TABS.gateways]: $localize`Gateways`,
- [TABS.subsystem]: $localize`Subsystem`,
- [TABS.namespace]: $localize`Namespace`
+ [TABS.gateways]: $localize`Gateway groups`,
+ [TABS.subsystem]: $localize`Subsystems`,
+ [TABS.namespace]: $localize`Namespaces`
};
@Component({