Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: switch to snoowrap to handle reddit comms
- Loading branch information
1 parent
106ac58
commit 0460637
Showing
6 changed files
with
191 additions
and
29 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import RedditClient from '../../src/clients/reddit'; | ||
|
||
describe.only('Reddit Client', () => { | ||
it('downloads the latest top posts', async () => { | ||
const response = await RedditClient.getTopPosts(50, ['earthporn']); | ||
|
||
expect(response.length).toBeGreaterThan(0); | ||
}); | ||
}); |
Oops, something went wrong.