Skip to content

Commit 1cfdd18

Browse files
improve test
1 parent b58b24a commit 1cfdd18

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tests/sfaImport.spec.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,14 @@ export const ImportSFATest = async (testVariable: ImportKeyTestVariable) => {
7474
email: testVariable.email,
7575
storageInstance,
7676
});
77-
assert.strictEqual(sfaResult2.finalKeyData.privKey,"");
77+
assert.strictEqual(sfaResult2.finalKeyData.privKey, "");
78+
79+
const coreKitInstance2 = await newCoreKitInstance(testVariable.email);
80+
const tssKey2 = await coreKitInstance2._UNSAFE_exportTssKey();
81+
// core kit should have same sfa key which was imported before
82+
assert.strictEqual(tssKey2, exportedTssKey1);
83+
assert.strictEqual(sfaResult.finalKeyData.privKey, tssKey2);
84+
7885

7986
});
8087

0 commit comments

Comments
 (0)