-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
himanshu
committed
Oct 24, 2023
1 parent
99bc575
commit a957ebf
Showing
3 changed files
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ import TorusUtils from "../src/torus"; | |
import { generateIdToken, lookupVerifier } from "./helpers"; | ||
|
||
const TORUS_TEST_EMAIL = "[email protected]"; | ||
const TORUS_IMPORT_EMAIL = "[email protected]"; | ||
const TORUS_IMPORT_EMAIL = "[email protected]"; | ||
|
||
const TORUS_EXTENDED_VERIFIER_EMAIL = "[email protected]"; | ||
|
||
|
@@ -286,7 +286,7 @@ describe("torus utils sapphire", function () { | |
}); | ||
|
||
it("should be able to key assign", async function () { | ||
const email = faker.internet.email(); | ||
const email = `${faker.internet.email()}`; | ||
const verifierDetails = { verifier: TORUS_TEST_VERIFIER, verifierId: email }; | ||
const nodeDetails = await TORUS_NODE_MANAGER.getNodeDetails(verifierDetails); | ||
const torusNodeEndpoints = nodeDetails.torusNodeSSSEndpoints; | ||
|
@@ -396,8 +396,10 @@ describe("torus utils sapphire", function () { | |
privHex | ||
); | ||
expect(result.finalKeyData.privKey).to.be.equal(privHex); | ||
const result1 = await torus.getPublicAddress(torusNodeEndpoints, nodeDetails.torusNodePub, { verifier: TORUS_TEST_VERIFIER, verifierId: email }); | ||
expect(result1.finalKeyData.evmAddress).to.be.equal(result.finalKeyData.evmAddress); | ||
}); | ||
it.skip("should be able to import a key for a existing user", async function () { | ||
it("should be able to import a key for a existing user", async function () { | ||
let verifierDetails = { verifier: TORUS_TEST_VERIFIER, verifierId: TORUS_IMPORT_EMAIL }; | ||
const nodeDetails = await TORUS_NODE_MANAGER.getNodeDetails(verifierDetails); | ||
const torusNodeEndpoints = nodeDetails.torusNodeSSSEndpoints; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters