diff --git a/__tests__/installer.test.ts b/__tests__/installer.test.ts index 5f72690d..26cf7d7c 100644 --- a/__tests__/installer.test.ts +++ b/__tests__/installer.test.ts @@ -592,7 +592,7 @@ describe('setup-node', () => { inputs['node-version-file'] = 'volta'; existsSpy.mockImplementationOnce( - input => input === path.join(__dirname, 'data', versionFile) + input => input === path.join(__dirname, 'data', versionFile) ); // Act await main.run(); @@ -601,7 +601,7 @@ describe('setup-node', () => { expect(existsSpy).toHaveBeenCalledTimes(1); expect(existsSpy).toHaveReturnedWith(true); expect(logSpy).toHaveBeenCalledWith( - `Resolved ${versionFile} as ${expectedVersionSpec}` + `Resolved ${versionFile} as ${expectedVersionSpec}` ); }); diff --git a/src/main.ts b/src/main.ts index 40d1cc1a..4ad4e719 100644 --- a/src/main.ts +++ b/src/main.ts @@ -95,7 +95,7 @@ function resolveVersionInput(): string { version = JSON.parse(fs.readFileSync(versionFilePath, 'utf8')).volta.node; } else { version = installer.parseNodeVersionFile( - fs.readFileSync(versionFilePath, 'utf8') + fs.readFileSync(versionFilePath, 'utf8') ); }