Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasngf committed Sep 23, 2021
1 parent 36434ce commit 28c4460
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "twitter-api-scraper",
"version": "0.0.3",
"version": "0.0.4",
"description": "Scrape the twitter api, no keys required.",
"author": "matiasngf",
"license": "MIT",
Expand Down
7 changes: 5 additions & 2 deletions test/client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ import TwitterClient from '../src'

jest.setTimeout(20000)

describe('Test Main client', async (): Promise<void> => {
const client = new TwitterClient()
const client = new TwitterClient()
beforeAll(async () => {
await client.connect()
})

describe('Test Main client', (): void => {
test('search', async (): Promise<void> => {
const q = { terms: 'hello world!' }
const result = await client.search(q, 5)
Expand Down

0 comments on commit 28c4460

Please sign in to comment.