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

Insomnia: Unit testing page #113

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

cloudjumpercat
Copy link
Contributor

@cloudjumpercat cloudjumpercat commented Oct 3, 2024

Page is intended to be a concept/reference hybrid, similar to the Consumers entity page.

I can't seem to get the concept bit to function correctly.

Copy link

netlify bot commented Oct 3, 2024

Deploy Preview for kongdeveloper ready!

Name Link
🔨 Latest commit 59d7f91
🔍 Latest deploy log https://app.netlify.com/sites/kongdeveloper/deploys/66ff0805aeb8260008d8583c
😎 Deploy Preview https://deploy-preview-113--kongdeveloper.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Comment on lines +38 to +53
{% mermaid %}
sequenceDiagram
participant API as API endpoint (/flights/KA0284/details)
participant FS as Flight service
participant DB as Database

API->>FS: Call GetFlightDetails("KA0284")
FS->>DB: Query for flight details
DB-->>FS: Return flight details
FS-->>API: Return flight details

alt Flight doesn't exist
DB-->>FS: Return error (404 not found)
FS-->>API: Return error response (404 not found)
end
{% endmermaid %}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

ChatGPT helped me make this, but it went through many revisions. I think I'm unsure if this particular diagram is helpful to understanding unit testing. And I read external systems shouldn't be in unit testing, but I think some unit tests (like flight service) are using a database of sorts. So I was confused about that.

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.

1 participant