@@ -130,7 +130,7 @@ describe('request-registry-mock', () => {
130130 userEndpointMock1 . activate ( ) ;
131131 userEndpointMock2 . activate ( ) ;
132132 expect ( await userEndpoint ( { } ) ) . toEqual ( { name : 'Chris' } ) ;
133- userEndpoint . clearCache ( ) ;
133+ userEndpoint . refresh ( ) ;
134134 userEndpointMock2 . clear ( ) ;
135135 expect ( await userEndpoint ( { } ) ) . toEqual ( { name : 'Alex' } ) ;
136136 } ) ;
@@ -155,7 +155,7 @@ describe('request-registry-mock', () => {
155155 userEndpointMock1 . activate ( ) ;
156156 userEndpointMock2 . activate ( ) ;
157157 expect ( await userEndpoint ( { } ) ) . toEqual ( { name : 'Chris' } ) ;
158- userEndpoint . clearCache ( ) ;
158+ userEndpoint . refresh ( ) ;
159159 userEndpointMock1 . clear ( ) ;
160160 expect ( await userEndpoint ( { } ) ) . toEqual ( { name : 'Chris' } ) ;
161161 userEndpointMock2 . clear ( ) ;
@@ -171,7 +171,7 @@ describe('request-registry-mock', () => {
171171 mockEndpointOnce ( userEndpoint , async ( ) => ( { name : 'Alex' } ) ) ;
172172 mockEndpointOnce ( userEndpoint , async ( ) => ( { name : 'Chris' } ) ) ;
173173 expect ( await userEndpoint ( { } ) ) . toEqual ( { name : 'Chris' } ) ;
174- userEndpoint . clearCache ( ) ;
174+ userEndpoint . refresh ( ) ;
175175 expect ( await userEndpoint ( { } ) ) . toEqual ( { name : 'Alex' } ) ;
176176 } ) ;
177177 } ) ;
@@ -196,7 +196,7 @@ describe('request-registry-mock', () => {
196196 activateMocks ( userEndpointMock1 , userEndpointMock2 ) ;
197197 expect ( await userEndpoint ( { } ) ) . toEqual ( { name : 'Chris' } ) ;
198198 userEndpointMock2 . clear ( ) ;
199- userEndpoint . clearCache ( ) ;
199+ userEndpoint . refresh ( ) ;
200200 expect ( await userEndpoint ( { } ) ) . toEqual ( { name : 'Alex' } ) ;
201201 } ) ;
202202 } ) ;
0 commit comments