Skip to content

Commit

Permalink
fix test:server
Browse files Browse the repository at this point in the history
  • Loading branch information
denysoblohin-okta committed Apr 25, 2022
1 parent 2616432 commit 2bcc941
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/spec/AuthStateManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
* See the License for the specific language governing permissions and limitations under the License.
*/

/* global window */

import Emitter from 'tiny-emitter';
import { AuthStateManager, INITIAL_AUTH_STATE } from '../../lib/AuthStateManager';
Expand Down Expand Up @@ -128,6 +129,9 @@ describe('AuthStateManager', () => {
describe('updateAuthState', () => {

describe('browser', () => {
if (typeof window === 'undefined') {
return;
}
it('should only trigger authStateManager.updateAuthState once when localStorage changed from other dom', async () => {
util.disableLeaderElection();
const auth = createAuth();
Expand Down

0 comments on commit 2bcc941

Please sign in to comment.