Skip to content

Commit

Permalink
v0.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
hebertcisco committed Jul 31, 2022
1 parent 33f7d2c commit 88b5f46
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pensador-promise",
"version": "0.3.1",
"version": "0.3.2",
"description": "Frases vindas do Pensador via WebScraping",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
20 changes: 0 additions & 20 deletions src/__tests__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,4 @@ describe('Pensador', () => {
const result = await pensador({ term: 'Elon Musk', max: 5 });
expect(result.total).toBeGreaterThan(0);
});
it('Should return an error when the term is not provided', async () => {
try {
await pensador({
max: 5,
term: '',
});
} catch (err: any) {
expect(err.message).toBe('The term is required');
}
});
it('Should return an error when the max is not provided', async () => {
try {
await pensador({
max: 0,
term: 'Elon Musk',
});
} catch (err: any) {
expect(err.message).toBe('The max is required');
}
});
});

1 comment on commit 88b5f46

@vercel
Copy link

@vercel vercel bot commented on 88b5f46 Jul 31, 2022

Choose a reason for hiding this comment

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

Please sign in to comment.