mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-13 13:03:04 +00:00
Merge branch 'w2p-49440_date-widget-for-search-features' into search-features
This commit is contained in:
@@ -123,10 +123,11 @@ describe('SearchFacetFilterComponent', () => {
|
|||||||
|
|
||||||
describe('when the onSubmit method is called with data', () => {
|
describe('when the onSubmit method is called with data', () => {
|
||||||
const searchUrl = '/search/path';
|
const searchUrl = '/search/path';
|
||||||
const data = { [mockFilterConfig.paramName + minSuffix]: '1900', [mockFilterConfig.paramName + maxSuffix]: '1950' };
|
comp.range = [1900, 1950];
|
||||||
|
// const data = { [mockFilterConfig.paramName + minSuffix]: '1900', [mockFilterConfig.paramName + maxSuffix]: '1950' };
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
spyOn(comp, 'getSearchLink').and.returnValue(searchUrl);
|
spyOn(comp, 'getSearchLink').and.returnValue(searchUrl);
|
||||||
comp.onSubmit(data);
|
comp.onSubmit();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should call navigate on the router with the right searchlink and parameters', () => {
|
it('should call navigate on the router with the right searchlink and parameters', () => {
|
||||||
|
Reference in New Issue
Block a user