Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
egermano committed Nov 7, 2024
1 parent 3dfd402 commit d961014
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/multidocument_validator.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ describe("CPF/CNPJ validator", () => {
try {
const result = documentValidator(item.document);
return expect(item.assert).toBe(result);
} catch (error) {
expect(error).toBeUndefined();
} catch {
return expect(item.assert).toBe(false);
}
});
Expand Down

0 comments on commit d961014

Please sign in to comment.