Skip to content

Commit

Permalink
Clarify example's description to better reflect actual logic
Browse files Browse the repository at this point in the history
  • Loading branch information
D-Pow committed Feb 8, 2020
1 parent 6dcf4e2 commit a6a3397
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions demo/mocks/MockConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ if (useStaticMock) {
* requests' query parameter.
*
* e.g.
* if (searchQuery === 'naruto') {
* return narutoResponse;
* } else if (!(searchQuery in mockConfig)) {
* if (searchQuery in mockConfig) {
* return mockConfig[searchQuery];
* } else {
* return MockRequests.originalFetch(searchUrl + searchQuery);
* }
*/
Expand Down

0 comments on commit a6a3397

Please sign in to comment.