@@ -51,7 +51,7 @@ describe('ItemAccessStatusBadgeComponent', () => {
5151 } ) ;
5252
5353 accessStatusDataService = jasmine . createSpyObj ( 'accessStatusDataService' , {
54- findAccessStatusFor : createSuccessfulRemoteDataObject$ ( unknownStatus ) ,
54+ findItemAccessStatusFor : createSuccessfulRemoteDataObject$ ( unknownStatus ) ,
5555 } ) ;
5656
5757 item = Object . assign ( new Item ( ) , {
@@ -97,7 +97,7 @@ describe('ItemAccessStatusBadgeComponent', () => {
9797 } ) ;
9898 } ) ;
9999
100- describe ( 'When the findAccessStatusFor method returns unknown' , ( ) => {
100+ describe ( 'When the findItemAccessStatusFor method returns unknown' , ( ) => {
101101 beforeEach ( waitForAsync ( ( ) => {
102102 init ( ) ;
103103 initTestBed ( ) ;
@@ -110,10 +110,10 @@ describe('ItemAccessStatusBadgeComponent', () => {
110110 } ) ;
111111 } ) ;
112112
113- describe ( 'When the findAccessStatusFor method returns metadata.only' , ( ) => {
113+ describe ( 'When the findItemAccessStatusFor method returns metadata.only' , ( ) => {
114114 beforeEach ( waitForAsync ( ( ) => {
115115 init ( ) ;
116- ( accessStatusDataService . findAccessStatusFor as jasmine . Spy ) . and . returnValue ( createSuccessfulRemoteDataObject$ ( metadataOnlyStatus ) ) ;
116+ ( accessStatusDataService . findItemAccessStatusFor as jasmine . Spy ) . and . returnValue ( createSuccessfulRemoteDataObject$ ( metadataOnlyStatus ) ) ;
117117 initTestBed ( ) ;
118118 } ) ) ;
119119 beforeEach ( ( ) => {
@@ -124,10 +124,10 @@ describe('ItemAccessStatusBadgeComponent', () => {
124124 } ) ;
125125 } ) ;
126126
127- describe ( 'When the findAccessStatusFor method returns open.access' , ( ) => {
127+ describe ( 'When the findItemAccessStatusFor method returns open.access' , ( ) => {
128128 beforeEach ( waitForAsync ( ( ) => {
129129 init ( ) ;
130- ( accessStatusDataService . findAccessStatusFor as jasmine . Spy ) . and . returnValue ( createSuccessfulRemoteDataObject$ ( openAccessStatus ) ) ;
130+ ( accessStatusDataService . findItemAccessStatusFor as jasmine . Spy ) . and . returnValue ( createSuccessfulRemoteDataObject$ ( openAccessStatus ) ) ;
131131 initTestBed ( ) ;
132132 } ) ) ;
133133 beforeEach ( ( ) => {
@@ -138,10 +138,10 @@ describe('ItemAccessStatusBadgeComponent', () => {
138138 } ) ;
139139 } ) ;
140140
141- describe ( 'When the findAccessStatusFor method returns embargo' , ( ) => {
141+ describe ( 'When the findItemAccessStatusFor method returns embargo' , ( ) => {
142142 beforeEach ( waitForAsync ( ( ) => {
143143 init ( ) ;
144- ( accessStatusDataService . findAccessStatusFor as jasmine . Spy ) . and . returnValue ( createSuccessfulRemoteDataObject$ ( embargoStatus ) ) ;
144+ ( accessStatusDataService . findItemAccessStatusFor as jasmine . Spy ) . and . returnValue ( createSuccessfulRemoteDataObject$ ( embargoStatus ) ) ;
145145 initTestBed ( ) ;
146146 } ) ) ;
147147 beforeEach ( ( ) => {
@@ -152,10 +152,10 @@ describe('ItemAccessStatusBadgeComponent', () => {
152152 } ) ;
153153 } ) ;
154154
155- describe ( 'When the findAccessStatusFor method returns restricted' , ( ) => {
155+ describe ( 'When the findItemAccessStatusFor method returns restricted' , ( ) => {
156156 beforeEach ( waitForAsync ( ( ) => {
157157 init ( ) ;
158- ( accessStatusDataService . findAccessStatusFor as jasmine . Spy ) . and . returnValue ( createSuccessfulRemoteDataObject$ ( restrictedStatus ) ) ;
158+ ( accessStatusDataService . findItemAccessStatusFor as jasmine . Spy ) . and . returnValue ( createSuccessfulRemoteDataObject$ ( restrictedStatus ) ) ;
159159 initTestBed ( ) ;
160160 } ) ) ;
161161 beforeEach ( ( ) => {
0 commit comments