diff --git a/package.json b/package.json index 0b96ad3..d4777e1 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,6 @@ "statements": 95, "branches": 78, "lines": 94, - "jobs": 1, "test-ignore": "fixtures/", "nyc-arg": [ "--exclude", diff --git a/test/license.js b/test/license.js index 65e6d1f..8a3899a 100644 --- a/test/license.js +++ b/test/license.js @@ -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 ], }) diff --git a/test/name-spaces.js b/test/name-spaces.js index a5f4619..72bcd36 100644 --- a/test/name-spaces.js +++ b/test/name-spaces.js @@ -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 @@ -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 diff --git a/test/name-uppercase.js b/test/name-uppercase.js index 62e5d1f..5c020a1 100644 --- a/test/name-uppercase.js +++ b/test/name-uppercase.js @@ -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'], '', '', '',