Skip to content

Commit b58b24a

Browse files
fix import sfa test
1 parent 09965fd commit b58b24a

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

tests/sfaImport.spec.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,10 @@ export const ImportSFATest = async (testVariable: ImportKeyTestVariable) => {
3434
}
3535

3636
test(`import sfa key and recover tss key : ${testVariable.manualSync}`, async function (t) {
37-
const beforeTest = async () => {
38-
await resetAccount(testVariable.email);
39-
};
40-
41-
await beforeTest();
42-
43-
await t.test("#recover Tss key using 2 factors key, import tss key to new oauth login", async function () {
37+
const afterTest = async () => {
38+
await resetAccount(testVariable.email);
39+
};
40+
await t.test("#recover Tss key using 2 factors key, import tss key to new oauth login", async function () {
4441
const sfaResult = await loginWithSFA({
4542
network: WEB3AUTH_NETWORK.DEVNET,
4643
manualSync: testVariable.manualSync,
@@ -81,6 +78,7 @@ export const ImportSFATest = async (testVariable: ImportKeyTestVariable) => {
8178

8279
});
8380

81+
await afterTest();
8482
t.afterEach(function () {
8583
return console.info("finished running recovery test");
8684
});

0 commit comments

Comments
 (0)