mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
Fix failed test
This commit is contained in:
@@ -142,7 +142,11 @@ describe('RouteService', () => {
|
||||
|
||||
describe('getHistory', () => {
|
||||
it('should dispatch AddUrlToHistoryAction on NavigationEnd event', () => {
|
||||
serviceAsAny.store = observableOf({ history: ['url', 'newurl'] });
|
||||
serviceAsAny.store = observableOf({
|
||||
core: {
|
||||
history: ['url', 'newurl']
|
||||
}
|
||||
});
|
||||
|
||||
service.getHistory().subscribe((history) => {
|
||||
expect(history).toEqual(['url', 'newurl']);
|
||||
|
Reference in New Issue
Block a user