Skip to content

Commit

Permalink
fix import sfa test
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshuchawla009 committed Dec 10, 2024
1 parent 09965fd commit b58b24a
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions tests/sfaImport.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,10 @@ export const ImportSFATest = async (testVariable: ImportKeyTestVariable) => {
}

test(`import sfa key and recover tss key : ${testVariable.manualSync}`, async function (t) {
const beforeTest = async () => {
await resetAccount(testVariable.email);
};

await beforeTest();

await t.test("#recover Tss key using 2 factors key, import tss key to new oauth login", async function () {
const afterTest = async () => {
await resetAccount(testVariable.email);
};
await t.test("#recover Tss key using 2 factors key, import tss key to new oauth login", async function () {
const sfaResult = await loginWithSFA({
network: WEB3AUTH_NETWORK.DEVNET,
manualSync: testVariable.manualSync,
Expand Down Expand Up @@ -81,6 +78,7 @@ export const ImportSFATest = async (testVariable: ImportKeyTestVariable) => {

});

await afterTest();
t.afterEach(function () {
return console.info("finished running recovery test");
});
Expand Down

0 comments on commit b58b24a

Please sign in to comment.