mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
122839: Fix vocabulary-treeview component tests
This commit is contained in:
@@ -22,6 +22,7 @@ import { authReducer } from '../../../core/auth/auth.reducer';
|
|||||||
import { storeModuleConfig } from '../../../app.reducer';
|
import { storeModuleConfig } from '../../../app.reducer';
|
||||||
import { By } from '@angular/platform-browser';
|
import { By } from '@angular/platform-browser';
|
||||||
import { VocabularyService } from '../../../core/submission/vocabularies/vocabulary.service';
|
import { VocabularyService } from '../../../core/submission/vocabularies/vocabulary.service';
|
||||||
|
import { createSuccessfulRemoteDataObject$ } from '../../remote-data.utils';
|
||||||
|
|
||||||
describe('VocabularyTreeviewComponent test suite', () => {
|
describe('VocabularyTreeviewComponent test suite', () => {
|
||||||
|
|
||||||
@@ -56,7 +57,8 @@ describe('VocabularyTreeviewComponent test suite', () => {
|
|||||||
findEntryDetailById: jasmine.createSpy('findEntryDetailById'),
|
findEntryDetailById: jasmine.createSpy('findEntryDetailById'),
|
||||||
searchTopEntries: jasmine.createSpy('searchTopEntries'),
|
searchTopEntries: jasmine.createSpy('searchTopEntries'),
|
||||||
getEntryDetailChildren: jasmine.createSpy('getEntryDetailChildren'),
|
getEntryDetailChildren: jasmine.createSpy('getEntryDetailChildren'),
|
||||||
clearSearchTopRequests: jasmine.createSpy('clearSearchTopRequests')
|
clearSearchTopRequests: jasmine.createSpy('clearSearchTopRequests'),
|
||||||
|
findVocabularyById: createSuccessfulRemoteDataObject$({ preloadLevel: 2 }),
|
||||||
});
|
});
|
||||||
|
|
||||||
initialState = {
|
initialState = {
|
||||||
|
Reference in New Issue
Block a user