Skip to content

Commit

Permalink
test: unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
franciscotobar committed Feb 15, 2024
1 parent a1ae292 commit efe76b9
Show file tree
Hide file tree
Showing 5 changed files with 581 additions and 289 deletions.
4 changes: 2 additions & 2 deletions src/HttpServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ export class HttpServer {
res.send(tokenResponse);
} catch (e) {
if (e instanceof Error) {
const message: string = e.message;
const message: string = e.name;
res.send({ message });
log.error(`token handler rejected: ${message}`);
} else {
Expand Down Expand Up @@ -423,7 +423,7 @@ export class HttpServer {
res.send(tokenResponse);
} catch (e) {
if (e instanceof Error) {
const message: string = e.message;
const message: string = e.name;
res.send({ message });
log.error(`destination contract handler rejected: ${message}`);
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/relayServerUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ function queryVerifiers(verifier: string | undefined, verifiers: Set<string>) {

// if a verifier was supplied, check that it is trusted
if (!verifiers.has(verifier.toLowerCase())) {
throw new Error('supplied verifier is not trusted');
throw new Error('Supplied verifier is not trusted');
}

return [verifier];
Expand Down
Loading

0 comments on commit efe76b9

Please sign in to comment.