Skip to content

Commit e8b970d

Browse files
authored
test: make test pass regardless of the expiration of the test constant jwt (#194)
1 parent 1689a76 commit e8b970d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/interception.basic1.test.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3262,6 +3262,7 @@ addTestCases((name, transferMethod, setupFunc, setupArgs = []) => {
32623262
});
32633263
await page.evaluate(async () => {
32643264
const userId = "testing-supertokens-website";
3265+
assert.strictEqual(document.cookie, "");
32653266
const loginResponse = await toTest({
32663267
url: `${BASE_URL}/login`,
32673268
method: "post",
@@ -3275,12 +3276,12 @@ addTestCases((name, transferMethod, setupFunc, setupArgs = []) => {
32753276
assert.strictEqual(loginResponse.statusCode, 200);
32763277
assert.strictEqual(loginResponse.responseText, userId);
32773278

3278-
assert.strictEqual(await supertokens.doesSessionExist(), true);
3279+
assert.notStrictEqual(document.cookie, "");
32793280
});
32803281
await page.setRequestInterception(false);
32813282
});
32823283

3283-
it("should log out work fine if the last header is an empty access-token", async () => {
3284+
it("should log out fine if the last header is an empty access-token", async () => {
32843285
await startST();
32853286
await setup();
32863287
await page.setRequestInterception(true);

0 commit comments

Comments
 (0)