Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More robust error handling #33

Merged
merged 8 commits into from
Jan 23, 2024
Merged

Conversation

tomas-zijdemans-vipps
Copy link
Collaborator

No description provided.

// deno-lint-ignore no-explicit-any
const result = await fetchJSON(request) as any;
assertEquals(result.ok, false);
assert(result.message !== undefined);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a specific message we look for here? We just test that result.ok === false and move on?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The whole test is a bit weak to be honest..

Copy link
Contributor

@flinkgutt flinkgutt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it looks ok, I didnt manage to spot anything glaringly obvious at least

@tomas-zijdemans-vipps tomas-zijdemans-vipps merged commit 5f1ea46 into main Jan 23, 2024
1 check passed
@tomas-zijdemans-vipps tomas-zijdemans-vipps deleted the more-robust-error-handling branch January 23, 2024 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants