Fix failed test

This commit is contained in:
Giuseppe Digilio
2020-01-17 13:08:26 +01:00
parent f630898eab
commit ddb787277b

View File

@@ -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']);