Skip to content
This repository has been archived by the owner on Dec 11, 2024. It is now read-only.

Commit

Permalink
fix(test): correções nos testes
Browse files Browse the repository at this point in the history
remoção dos console.log
  • Loading branch information
andrefelipeschulle committed Feb 6, 2024
1 parent 8dc3c82 commit e910a3f
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 31 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@brainylab/fetch-wrapper",
"version": "0.3.0",
"version": "0.3.1",
"main": "./index.js",
"module": "./index.mjs",
"types": "./index.d.ts",
Expand Down
2 changes: 0 additions & 2 deletions src/lib/error-handling.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ describe('error-handling', () => {
} catch (error) {
const result = fwprErrorHandling(error);

console.log(error);

expect(result).toHaveProperty('error');
expect(result.error).toEqual('CONNECTION_REFUSED');
}
Expand Down
1 change: 0 additions & 1 deletion src/lib/error-handling.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export type ErrorHandlingResponse = {
};

export function fwprErrorHandling(error: unknown): ErrorHandlingResponse {
console.log(error);
if (error instanceof HttpRequestError) {
return {
status: error.status,
Expand Down
27 changes: 0 additions & 27 deletions test.ts

This file was deleted.

0 comments on commit e910a3f

Please sign in to comment.