mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
use test for undefined Menu Section
This commit is contained in:
@@ -246,6 +246,16 @@ describe('MenuService', () => {
|
||||
|
||||
expect(result).toBeObservable(expected);
|
||||
});
|
||||
|
||||
it('should return undefined', () => {
|
||||
|
||||
const result = service.getMenuSection(MenuID.ADMIN, 'fake');
|
||||
const expected = cold('b', {
|
||||
b: undefined
|
||||
});
|
||||
|
||||
expect(result).toBeObservable(expected);
|
||||
});
|
||||
});
|
||||
|
||||
describe('isMenuCollapsed', () => {
|
||||
|
Reference in New Issue
Block a user