-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: ignore null items in API responses (#240)
* fix: ignore null items in API responses - configure the talk client to use the production API for tests. - test a talk production search that is known to break the API client. - ignore null response data, so that the tests pass. * clean up loops with forEach * fix indentation * test individual comments * refactor with filter(Boolean) to remove null responses * Mock the Talk API with nock * Move the tests to talk-test.zooniverse.org * Test an empty search --------- Co-authored-by: Mark Bouslog <[email protected]>
- Loading branch information
1 parent
efd7e7d
commit 9db4b43
Showing
8 changed files
with
1,258 additions
and
172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
module.exports = { | ||
reporter: 'spec', | ||
checkLeaks: true, | ||
slow: 300 | ||
slow: 300, | ||
require: [ | ||
'test/support/setup.mjs' | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.