-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
62df982
commit c6cc7df
Showing
3 changed files
with
26 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,3 @@ node_modules/ | |
dist/ | ||
types/ | ||
coverage/ | ||
tests/ |
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,13 @@ | ||
import cnpjGenerator from '../src/cnpjGenerator' | ||
import { cnpjIsValid } from 'multiform-validator' | ||
|
||
describe('geraEValida', () => { | ||
it('should generate a valid CNPJ', () => { | ||
|
||
expect(cnpjIsValid(cnpjGenerator()).isValid).toBe(true); // Assert that the generated CNPJ is valid | ||
}); | ||
|
||
it('Should generate a valid cnpj and return a string', () => { | ||
expect(typeof cnpjGenerator()).toBe('string'); // Assert that the generated CNPJ is a string | ||
}); | ||
}); |
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,13 @@ | ||
import cpfGenerator from '../src/cpfGenerator' | ||
import { cpfIsValid } from 'multiform-validator' | ||
|
||
describe('geraEValida', () => { | ||
it('should generate a valid CPF', () => { | ||
|
||
expect(cpfIsValid(cpfGenerator()).isValid).toBe(true); // Assert that the generated CPF is valid | ||
}); | ||
|
||
it('Should generate a valid cpf and return a string', () => { | ||
expect(typeof cpfGenerator()).toBe('string'); // Assert that the generated CPF is a string | ||
}); | ||
}); |