Skip to content

Commit

Permalink
test: properly reset in claim validator tests
Browse files Browse the repository at this point in the history
  • Loading branch information
porcellus committed May 23, 2024
1 parent 8f8f960 commit db4ad67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/sessionClaims.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
let AuthHttpRequest = require("../index.js").default;
let jsdom = require("mocha-jsdom");
let assert = require("assert");
let { resetSessionClaimValidatorStore } = require("./utils");
let { resetSessionClaimValidatorStore, resetAuthHttpRequestFetch } = require("./utils");
const sinon = require("sinon");
const { SessionClaimValidatorStore } = require("../lib/build/utils/sessionClaimValidatorStore.js");

Expand All @@ -41,6 +41,7 @@ describe("AuthHttpRequest claim handling", function () {
beforeEach(async function () {
sinon.restore();
global.document = {};
resetAuthHttpRequestFetch();
resetSessionClaimValidatorStore();
accessTokenStub = sinon.stub().returns({});
AuthHttpRequest.init({
Expand Down

0 comments on commit db4ad67

Please sign in to comment.