@@ -21,7 +21,7 @@ describe('track views automatically', () => {
2121 let viewTest : ViewTest
2222
2323 beforeEach ( ( ) => {
24- viewTest = setupViewTest ( { initialLocation : '/foo' } , { name : 'initial view name' } )
24+ viewTest = setupViewTest ( { initialLocation : '/foo' , initialViewOptions : { name : 'initial view name' } } )
2525 changeLocation = viewTest . changeLocation
2626 } )
2727
@@ -94,14 +94,14 @@ describe('view lifecycle', () => {
9494 beforeEach ( ( ) => {
9595 clock = mockClock ( )
9696
97- viewTest = setupViewTest (
98- { initialLocation : '/foo' } ,
99- {
97+ viewTest = setupViewTest ( {
98+ initialLocation : '/foo' ,
99+ initialViewOptions : {
100100 name : 'initial view name' ,
101101 service : 'initial service' ,
102102 version : 'initial version' ,
103- }
104- )
103+ } ,
104+ } )
105105 notifySpy = spyOn ( viewTest . lifeCycle , 'notify' ) . and . callThrough ( )
106106
107107 changeLocation = viewTest . changeLocation
@@ -919,13 +919,13 @@ describe('service and version', () => {
919919 } )
920920
921921 it ( 'should come from the view option if defined' , ( ) => {
922- const { getViewUpdate } = setupViewTest (
923- { partialConfig : { service : 'service' , version : 'version' } } ,
924- {
922+ const { getViewUpdate } = setupViewTest ( {
923+ partialConfig : { service : 'service' , version : 'version' } ,
924+ initialViewOptions : {
925925 service : 'view service' ,
926926 version : 'view version' ,
927- }
928- )
927+ } ,
928+ } )
929929
930930 expect ( getViewUpdate ( 0 ) . service ) . toEqual ( 'view service' )
931931 expect ( getViewUpdate ( 0 ) . version ) . toEqual ( 'view version' )
0 commit comments