Skip to content

Commit 7929d5f

Browse files
committed
adds all mfa tests
1 parent a0d7ba4 commit 7929d5f

File tree

5 files changed

+854
-6
lines changed

5 files changed

+854
-6
lines changed

api-mock/mocks/PasswordlessMock.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,18 @@ export const PasswordlessMock: Partial<typeof Passwordless> = {
3131
},
3232
}
3333
: {}),
34+
...(config?.override
35+
? {
36+
override: {
37+
...config.override,
38+
...(config.override.apis
39+
? {
40+
apis: minify(config?.override?.apis.toString()),
41+
}
42+
: {}),
43+
},
44+
}
45+
: {}),
3446
}),
3547
recipeId: "passwordless",
3648
} as any;

api-mock/mocks/SuperTokensMock.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,11 @@ export const SuperTokensMock: Partial<typeof SuperTokens> = {
6262
input,
6363
});
6464
},
65+
getUsersOldestFirst: async (input) => {
66+
return await queryAPI({
67+
method: "post",
68+
path: "/test/supertokens/getusersoldestfirst",
69+
input,
70+
});
71+
},
6572
};

test/mfa/mfa.recipeFunctions.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616
const { printPath, setupST, startST: globalStartST, killAllST, cleanST, createTenant } = require("../utils");
1717
let assert = require("assert");
18-
// let MultiFactorAuthRecipe = require("../../lib/build/recipe/multifactorauth/recipe").default;
1918
const { recipesMock, getOverrideParams, randomString } = require("../../api-mock");
2019
const {
2120
AccountLinking,

0 commit comments

Comments
 (0)