mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
14 lines
572 B
TypeScript
14 lines
572 B
TypeScript
import { BrowseByDataType } from './browse-by-data-type';
|
|
import { rendersBrowseBy } from './browse-by-decorator';
|
|
|
|
describe('BrowseByDecorator', () => {
|
|
const titleDecorator = rendersBrowseBy(BrowseByDataType.Title);
|
|
const dateDecorator = rendersBrowseBy(BrowseByDataType.Date);
|
|
const metadataDecorator = rendersBrowseBy(BrowseByDataType.Metadata);
|
|
it('should have a decorator for all types', () => {
|
|
expect(titleDecorator.length).not.toEqual(0);
|
|
expect(dateDecorator.length).not.toEqual(0);
|
|
expect(metadataDecorator.length).not.toEqual(0);
|
|
});
|
|
});
|