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