Skip to content

Commit dfd3abd

Browse files
committed
chore: fix race condition in test inputs
1 parent 8b919b7 commit dfd3abd

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
"statements": 95,
4141
"branches": 78,
4242
"lines": 94,
43-
"jobs": 1,
4443
"test-ignore": "fixtures/",
4544
"nyc-arg": [
4645
"--exclude",

test/license.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ t.test('license', async (t) => {
1616
'', // git repo
1717
'', // keywords
1818
'', // author
19-
'Apache', // license
20-
'Apache-2.0', // license
19+
[/license: \(.*\) $/, 'Apache'], // invalid license
20+
[/license: \(.*\) $/, 'Apache-2.0'], // license
2121
'yes', // about to write
2222
],
2323
})

test/name-spaces.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ if (isChild()) {
88
t.test('single space', async t => {
99
const { data } = await setup(t, __filename, {
1010
inputs: [
11-
'the name', // package name
12-
'the-name', // package name
11+
[/name: \(.*\) $/, 'the name'], // invalid package name
12+
[/name: \(.*\) $/, 'the-name'], // package name
1313
'', // version
1414
'', // description
1515
'', // entry point
@@ -37,8 +37,8 @@ t.test('single space', async t => {
3737
t.test('multiple spaces', async t => {
3838
const { data } = await setup(t, __filename, {
3939
inputs: [
40-
'the name should be this', // package name
41-
'the-name-should-be-this', // package name
40+
[/name: \(.*\) $/, 'the name should be this'], // invalid package name
41+
[/name: \(.*\) $/, 'the-name-should-be-this'], // package name
4242
'', // version
4343
'', // description
4444
'', // entry point

test/name-uppercase.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ if (isChild()) {
88
t.test('uppercase', async (t) => {
99
const { data } = await setup(t, __filename, {
1010
inputs: [
11-
'THE-NAME',
12-
'the-name',
11+
[/name: \(.*\) $/, 'THE-NAME'],
12+
[/name: \(.*\) $/, 'the-name'],
1313
'',
1414
'',
1515
'',

0 commit comments

Comments
 (0)