Skip to content

Commit

Permalink
fix: removed catch
Browse files Browse the repository at this point in the history
  • Loading branch information
guru-web3 committed Jan 3, 2024
1 parent 39c9cf8 commit a94043e
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions test/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -378,15 +378,9 @@ describe("API-calls", function () {
const msg = "getOrSetNonce";
const data = "getOrSetNonce";
const privKeyNew = new BN(generatePrivate());
try {
const metadataParams = generateGetOrSetNonceParams(msg, data, privKeyNew, "ed25519");
const val = await post(`${server}/get_or_set_nonce`, metadataParams);
assert.isString(val.nonce);
} catch (err) {
console.log({ err });
const val = await err.json();
console.log({ val });
}
const metadataParams = generateGetOrSetNonceParams(msg, data, privKeyNew, "ed25519");
const val = await post(`${server}/get_or_set_nonce`, metadataParams);
assert.isString(val.nonce);
});

it("#it should get existing nonce for user when validation is correct", async function () {
Expand Down

0 comments on commit a94043e

Please sign in to comment.