@@ -167,6 +167,7 @@ describe('validateSession', () => {
167167
168168 // Then
169169 expect ( got ) . toBe ( 'needs_refresh' )
170+ expect ( validateIdentityToken ) . not . toHaveBeenCalled ( )
170171 } )
171172
172173 test ( 'returns needs_refresh if requesting partners and is expired' , async ( ) => {
@@ -184,6 +185,7 @@ describe('validateSession', () => {
184185
185186 // Then
186187 expect ( got ) . toBe ( 'needs_refresh' )
188+ expect ( validateIdentityToken ) . not . toHaveBeenCalled ( )
187189 } )
188190
189191 test ( 'returns needs_refresh if requesting storefront and is expired' , async ( ) => {
@@ -201,6 +203,7 @@ describe('validateSession', () => {
201203
202204 // Then
203205 expect ( got ) . toBe ( 'needs_refresh' )
206+ expect ( validateIdentityToken ) . not . toHaveBeenCalled ( )
204207 } )
205208
206209 test ( 'returns needs_refresh if requesting admin and is expired' , async ( ) => {
@@ -218,6 +221,7 @@ describe('validateSession', () => {
218221
219222 // Then
220223 expect ( got ) . toBe ( 'needs_refresh' )
224+ expect ( validateIdentityToken ) . not . toHaveBeenCalled ( )
221225 } )
222226
223227 test ( 'returns needs_refresh if session does not include requested store' , async ( ) => {
@@ -235,5 +239,6 @@ describe('validateSession', () => {
235239
236240 // Then
237241 expect ( got ) . toBe ( 'needs_refresh' )
242+ expect ( validateIdentityToken ) . not . toHaveBeenCalled ( )
238243 } )
239244} )
0 commit comments