[ACA-1426] Search - back from preview breaks view (#376)

* build url from string

* fix tests
This commit is contained in:
Cilibiu Bogdan
2018-06-01 13:48:56 +03:00
committed by Denys Vuika
parent f2cc8e260b
commit f21ddee491
2 changed files with 21 additions and 5 deletions

View File

@@ -205,7 +205,7 @@ describe('PreviewComponent', () => {
component.onVisibilityChanged(false);
expect(router.navigate).toHaveBeenCalledWith(
['libraries']
['libraries', {}]
);
});
@@ -219,7 +219,7 @@ describe('PreviewComponent', () => {
component.onVisibilityChanged(false);
expect(router.navigate).toHaveBeenCalledWith(
['libraries', 'site1']
['libraries', {}, 'site1']
);
});
@@ -233,7 +233,7 @@ describe('PreviewComponent', () => {
component.onVisibilityChanged(false);
expect(router.navigate).toHaveBeenCalledWith(
['shared']
['shared', {}]
);
});