Skip to content

Commit 7b1cd2c

Browse files
committed
Fix project name test formatting.
1 parent dc17982 commit 7b1cd2c

1 file changed

Lines changed: 6 additions & 10 deletions

File tree

‎packages/create-void/test/unit/args.test.ts‎

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,12 @@ describe('parseCreateArgs', () => {
2121
expect(() => parseCreateArgs([name])).toThrow('create-void: Project name must be lowercase');
2222
});
2323

24-
it.each([
25-
'my_app',
26-
'my.app',
27-
'my app',
28-
'nested/my-app',
29-
'my-app-',
30-
'a'.repeat(64),
31-
])('rejects invalid project names from the command line: %s', (name) => {
32-
expect(() => parseCreateArgs([name])).toThrow('create-void: Project name');
33-
});
24+
it.each(['my_app', 'my.app', 'my app', 'nested/my-app', 'my-app-', 'a'.repeat(64)])(
25+
'rejects invalid project names from the command line: %s',
26+
(name) => {
27+
expect(() => parseCreateArgs([name])).toThrow('create-void: Project name');
28+
},
29+
);
3430

3531
it.each(['a', '0', 'my-app', 'my--app', 'app123', 'a'.repeat(63)])(
3632
'accepts deployable project names from the command line: %s',

0 commit comments

Comments
 (0)