Skip to content

Commit 9bd578d

Browse files
fix lint
1 parent b904bb1 commit 9bd578d

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

test/action/dependency.test.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,14 @@ describe('package.json', function () {
5757
.split('\n')
5858
.join('');
5959

60-
for (const [depName, depVersion] of Object.entries(peerDependencies as Record<string, string>)) {
61-
// If a dependency specifies `alpha|beta`, the major version will fail to install because
60+
for (const [depName, depVersion] of Object.entries(
61+
peerDependencies as Record<string, string>
62+
)) {
63+
// If a dependency specifies `alpha|beta`, the major version will fail to install because
6264
// an alpha < the major of that version (ex: [email protected] < [email protected])
63-
const depInstallSpecifier = /alpha|beta/.test(depVersion) ? depVersion : depVersion.split('.')[0];
65+
const depInstallSpecifier = /alpha|beta/.test(depVersion)
66+
? depVersion
67+
: depVersion.split('.')[0];
6468

6569
context(`when ${depName} is NOT installed`, () => {
6670
beforeEach(async () => {

0 commit comments

Comments
 (0)