3
0
Fork 0
mirror of https://gitea.com/actions/setup-node.git synced 2024-11-22 01:59:32 +01:00

chore: run prettier

This commit is contained in:
Jef LeCompte 2022-06-29 15:11:14 -07:00
parent f40b60859d
commit 9aa86428fe
No known key found for this signature in database
GPG key ID: 7F5BA322B5DC170C
2 changed files with 3 additions and 3 deletions

View file

@ -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}`
);
});

View file

@ -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')
);
}