Skip to content

Commit

Permalink
test(common): Corrige nombres de pruebas unitarias. Gracias @unjust
Browse files Browse the repository at this point in the history
  • Loading branch information
lupomontero committed Jun 27, 2023
1 parent eafe9d8 commit ed5000f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/__tests__/common.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ import {
vi.mock('sharp');

describe('parseDirname', () => {
it('allows dirname without prefix', () => {
it('throws when dirname has invalid chars', () => {
expect(() => parseDirname('foo ()'))
.toThrow('Directory name must only contain alphanumeric characters and hyphens (-)');
});

it('allows dirname without prefix', () => {
it('throws when dirname is not all lowercase', () => {
expect(() => parseDirname('Foo'))
.toThrow('Directory name must be all lowercase and received Foo');
});
Expand Down

0 comments on commit ed5000f

Please sign in to comment.