Skip to content

Commit a5a6bb4

Browse files
committed
ci: add missing unit tests
1 parent 4b36084 commit a5a6bb4

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

test/thirdparty/oidc.test.js

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* under the License.
1414
*/
1515

16-
const { printPath, setupST, startSTWithMultitenancy, killAllST, cleanST } = require("../utils");
16+
const { printPath, createCoreApplicationWithMultitenancy } = require("../utils");
1717
let STExpress = require("../../");
1818
let assert = require("assert");
1919
let { ProcessState } = require("../../lib/build/processState");
@@ -23,18 +23,12 @@ let ThirdParty = require("../../lib/build/recipe/thirdparty");
2323

2424
describe(`oidcTest: ${printPath("[test/thirdparty/oidc.test.js]")}`, function () {
2525
beforeEach(async function () {
26-
await killAllST();
27-
await setupST();
2826
ProcessState.getInstance().reset();
2927
});
3028

31-
after(async function () {
32-
await killAllST();
33-
await cleanST();
34-
});
3529

3630
it("should use code challenge method S256 if supported by the provider", async function () {
37-
const connectionURI = await startSTWithMultitenancy();
31+
const connectionURI = await createCoreApplicationWithMultitenancy();
3832

3933
STExpress.init({
4034
supertokens: {
@@ -86,7 +80,7 @@ describe(`oidcTest: ${printPath("[test/thirdparty/oidc.test.js]")}`, function ()
8680
});
8781

8882
it("should not use pkce if oidc response does not support S256", async function () {
89-
const connectionURI = await startSTWithMultitenancy();
83+
const connectionURI = await createCoreApplicationWithMultitenancy();
9084

9185
STExpress.init({
9286
supertokens: {
@@ -131,7 +125,7 @@ describe(`oidcTest: ${printPath("[test/thirdparty/oidc.test.js]")}`, function ()
131125
});
132126

133127
it("should use pkce if oidc response does not support S256 but forcePKCE is true", async function () {
134-
const connectionURI = await startSTWithMultitenancy();
128+
const connectionURI = await createCoreApplicationWithMultitenancy();
135129

136130
STExpress.init({
137131
supertokens: {

0 commit comments

Comments
 (0)