Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Fix api-problem's translation of 404 errors #141

Merged
merged 3 commits into from
Jan 15, 2019
Merged

Conversation

bryanstearns
Copy link
Member

My project’s API started 404ing today, causing me to notice that the boilerplate getGeneralApiProblem() doesn’t correctly translate 404 errors.

I added a test for all of its translations, made the test pass, and copied the test to this project… and noticed that we don’t have a test that ensures that new apps’ tests pass, so I added that too. (Surprisingly, it doesn’t seem to add to the test time, because of jest’s parallelism? — tests still take about 320s on my machine. 🎉 )

@derekgreenberg
Copy link
Member

Looks good to me

Copy link
Member

@robinheinze robinheinze left a comment

Choose a reason for hiding this comment

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

Nice!

Copy link
Member

@jamonholmgren jamonholmgren left a comment

Choose a reason for hiding this comment

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

Epic.

@jamonholmgren
Copy link
Member

I like it when a 2 line code change is accompanied by 11 new tests. 😆 So good.

@jamonholmgren jamonholmgren merged commit 0369a23 into master Jan 15, 2019
@jamonholmgren jamonholmgren deleted the fix-not-found branch January 15, 2019 06:34
infinitered-circleci pushed a commit that referenced this pull request Jan 15, 2019
## [2.0.3](v2.0.2...v2.0.3) (2019-01-15)

### Bug Fixes

* **api:** Add 404 error translation ([#141](#141)) by [@bryanstearns](https://github.com/bryanstearns) ([0369a23](0369a23))
@infinitered-circleci
Copy link

🎉 This PR is included in version 2.0.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants