-
Notifications
You must be signed in to change notification settings - Fork 1
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Diana <[email protected]>
✅ Deploy Preview for kongdeveloper ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Signed-off-by: Diana <[email protected]>
Signed-off-by: Diana <[email protected]>
{% 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 %} |
There was a problem hiding this comment.
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.
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.