Skip to content

Commit

Permalink
chore: fix race condition in test inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed Feb 6, 2023
1 parent 8b919b7 commit dfd3abd
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
"statements": 95,
"branches": 78,
"lines": 94,
"jobs": 1,
"test-ignore": "fixtures/",
"nyc-arg": [
"--exclude",
Expand Down
4 changes: 2 additions & 2 deletions test/license.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ t.test('license', async (t) => {
'', // git repo
'', // keywords
'', // author
'Apache', // license
'Apache-2.0', // license
[/license: \(.*\) $/, 'Apache'], // invalid license
[/license: \(.*\) $/, 'Apache-2.0'], // license
'yes', // about to write
],
})
Expand Down
8 changes: 4 additions & 4 deletions test/name-spaces.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ if (isChild()) {
t.test('single space', async t => {
const { data } = await setup(t, __filename, {
inputs: [
'the name', // package name
'the-name', // package name
[/name: \(.*\) $/, 'the name'], // invalid package name
[/name: \(.*\) $/, 'the-name'], // package name
'', // version
'', // description
'', // entry point
Expand Down Expand Up @@ -37,8 +37,8 @@ t.test('single space', async t => {
t.test('multiple spaces', async t => {
const { data } = await setup(t, __filename, {
inputs: [
'the name should be this', // package name
'the-name-should-be-this', // package name
[/name: \(.*\) $/, 'the name should be this'], // invalid package name
[/name: \(.*\) $/, 'the-name-should-be-this'], // package name
'', // version
'', // description
'', // entry point
Expand Down
4 changes: 2 additions & 2 deletions test/name-uppercase.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ if (isChild()) {
t.test('uppercase', async (t) => {
const { data } = await setup(t, __filename, {
inputs: [
'THE-NAME',
'the-name',
[/name: \(.*\) $/, 'THE-NAME'],
[/name: \(.*\) $/, 'the-name'],
'',
'',
'',
Expand Down

0 comments on commit dfd3abd

Please # to comment.