@@ -90,7 +90,7 @@ describe('MetadataLinkViewComponent', () => {
9090 } ) ;
9191
9292 itemService = jasmine . createSpyObj ( 'ItemDataService' , {
93- findById : jasmine . createSpy ( 'findById ' )
93+ findByIdWithProjections : jasmine . createSpy ( 'findByIdWithProjections ' )
9494 } ) ;
9595
9696 beforeEach ( waitForAsync ( ( ) => {
@@ -110,7 +110,7 @@ describe('MetadataLinkViewComponent', () => {
110110 describe ( 'Check metadata without authority' , ( ) => {
111111 beforeEach ( ( ) => {
112112 fixture = TestBed . createComponent ( MetadataLinkViewComponent ) ;
113- itemService . findById . and . returnValue ( createSuccessfulRemoteDataObject$ ( testOrgunit ) ) ;
113+ itemService . findByIdWithProjections . and . returnValue ( createSuccessfulRemoteDataObject$ ( testOrgunit ) ) ;
114114 component = fixture . componentInstance ;
115115 component . item = testPerson ;
116116 component . metadata = testMetadataValueWithoutAuthority ;
@@ -135,7 +135,7 @@ describe('MetadataLinkViewComponent', () => {
135135 describe ( 'when item is found with orcid' , ( ) => {
136136 beforeEach ( ( ) => {
137137 fixture = TestBed . createComponent ( MetadataLinkViewComponent ) ;
138- itemService . findById . and . returnValue ( createSuccessfulRemoteDataObject$ ( testPerson ) ) ;
138+ itemService . findByIdWithProjections . and . returnValue ( createSuccessfulRemoteDataObject$ ( testPerson ) ) ;
139139 component = fixture . componentInstance ;
140140 component . item = testPerson ;
141141 component . metadata = testMetadataValueWithAuthority ;
@@ -162,7 +162,7 @@ describe('MetadataLinkViewComponent', () => {
162162 describe ( 'when item is found without orcid' , ( ) => {
163163 beforeEach ( ( ) => {
164164 fixture = TestBed . createComponent ( MetadataLinkViewComponent ) ;
165- itemService . findById . and . returnValue ( createSuccessfulRemoteDataObject$ ( testOrgunit ) ) ;
165+ itemService . findByIdWithProjections . and . returnValue ( createSuccessfulRemoteDataObject$ ( testOrgunit ) ) ;
166166 component = fixture . componentInstance ;
167167 component . item = testPerson ;
168168 component . metadata = testMetadataValueWithAuthority ;
@@ -189,7 +189,7 @@ describe('MetadataLinkViewComponent', () => {
189189 describe ( 'when item is not found' , ( ) => {
190190 beforeEach ( ( ) => {
191191 fixture = TestBed . createComponent ( MetadataLinkViewComponent ) ;
192- itemService . findById . and . returnValue ( createFailedRemoteDataObject$ ( ) ) ;
192+ itemService . findByIdWithProjections . and . returnValue ( createFailedRemoteDataObject$ ( ) ) ;
193193 component = fixture . componentInstance ;
194194 component . item = testPerson ;
195195 component . metadata = testMetadataValueWithAuthority ;
0 commit comments